我执行一个 INSERT INTO 语句
cursor.execute("INSERT INTO mytable(height) VALUES(%s)",(height))
我想得到主键。
我的表有 2 列:
id primary, auto incrementheight this is the other column.
插入后如何获得“id”?
欢迎分享,转载请注明来源:内存溢出
我执行一个 INSERT INTO 语句
cursor.execute("INSERT INTO mytable(height) VALUES(%s)",(height))
我想得到主键。
我的表有 2 列:
id primary, auto incrementheight this is the other column.
插入后如何获得“id”?
欢迎分享,转载请注明来源:内存溢出