pymysql-pool
pymysql-pool copied to clipboard
execute_query() can't get the lastrowid when insert the record to DB
Use the function of execute_query()
to insert the record to DB, can't get lastrowid.
And, the function of execute_query()
use with context manager, so can't use same connection to execute conn.execute_query("SELECT LAST_INSERT_ID();")
sentence to query the LAST_INSERT_ID().