python 3.x - what is the difference between cur.execute and con.execute? -


In the Python Manual :.

In some code: cur.execute (sqlite command), there are some code in: con.execute (sqlite command),

What is the difference between them? From Docs for

connection (see):

Execute (SQL [, parameters]) This is a nonstandard shortcut that creates an intermediate cursor object by calling the cursor method, then implementing the cursor with the parameter given parameter.

Then to answer your question: It just creates a new cursor and implements your statement. This new cursor

Comments

Popular posts from this blog

c# - Roxy file manager in MVC doesn't accept session path -

php - proc_open Too many open files in long running Symfony Console app -

c# - Show a huge number of data in DevExpress GridView -