一,mysql设置自增,非空主键的SQL语句
"CREATE TABLE IF NOT EXISTS test_db(autoids INT AUTO_INCREMENT NOT NULL UNIQUE,
names CHAR(50))"
null_value = None
values = [null_value,"insert01","insert02"]
cursor.execute('INSERT INTO test_db values(%s,%s,%s)',values)
#搞定