Home > database > PostgreSQL, please write into the SQL, if it is a circular insert, commit how should handle?
PostgreSQL, please write into the SQL, if it is a circular insert, commit how should handle?
Time:10-11
So, I want to read the article 500000 data from other places is inserted into the database of PG, excuse me I in the loop, is each SQL execution, after a commit, or, after the completion of all the SQL execution in the commit, A:
For the item in the pool: SQL="" "" insert into... " "Po_cursor. Execute (SQL) MIT () conn_pg.com
2:
For the item in the pool: SQL="" "" insert into... " "Po_cursor. Execute (SQL) MIT () conn_pg.com