8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7cad3 commit e9c8de6Copy full SHA for e9c8de6
Doc/includes/sqlite3/executescript.py
Doc/library/sqlite3.rst
@@ -1007,9 +1007,16 @@ Cursor Objects
1007
1008
*sql_script* must be a :class:`string <str>`.
1009
1010
- Example:
+ Example::
1011
1012
- .. literalinclude:: ../includes/sqlite3/executescript.py
+ # cur is an sqlite3.Cursor object
1013
+ cur.executescript("""
1014
+ begin;
1015
+ create table person(firstname, lastname, age);
1016
+ create table book(title, author, published);
1017
+ create table publisher(name, address);
1018
+ commit;
1019
+ """)
1020
1021
1022
.. method:: fetchone()
0 commit comments