January 2019
Beginner
556 pages
14h 19m
English
Suppose that the connection is established and there is a conn variable that refers to the instance of the connection class. To execute an SQL command, it's necessary to create a cursor object that will represent the context of the command. Cursors are created by calling the connection.cursor() method of a connection, as follows:
cur = conn.cursor()
Now the cur variable refers to the cursor object. Optionally, the cursor() method can take the following parameters:
Read now
Unlock full access