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

ruby on rails - How to avoid ActionController::InvalidCrossOriginRequest exception? -

Selenium IDE Conditional Statements -

How to edit the second line in text file using batch? -