我执行INSERT INTO语句
cursor.execute("INSERT INTO mytable(height) VALUES(%s)",(height))
Run Code Online (Sandbox Code Playgroud)
我想获得主键.
我的表有2列:
id primary, auto increment
height this is the other column.
Run Code Online (Sandbox Code Playgroud)
在我刚插入之后如何获得"id"?