2024-10-04 09:20:45 发布
网友
Python的sqlite3模块中是否有类似于Java的API语句.getGeneratedKeys()? 如果没有,用sqlite3在Python中获得最近自动生成的键的最佳方法是什么?在
{cdite>需要使用函数。从SQLite documentation:
The last_insert_rowid() function returns the ROWID of the last row insert from the database connection which invoked the function. The last_insert_rowid() SQL function is a wrapper around the sqlite3_last_insert_rowid() C/C++ interface function
{cdite>需要使用函数。从SQLite documentation:
相关问题 更多 >
编程相关推荐