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 3e9a496 commit 6eae15aCopy full SHA for 6eae15a
Doc/includes/sqlite3/executescript.py
Doc/library/sqlite3.rst
@@ -997,9 +997,16 @@ Cursor Objects
997
998
*sql_script* must be a :class:`string <str>`.
999
1000
- Example:
+ Example::
1001
1002
- .. literalinclude:: ../includes/sqlite3/executescript.py
+ # cur is an sqlite3.Cursor object
1003
+ cur.executescript("""
1004
+ begin;
1005
+ create table person(firstname, lastname, age);
1006
+ create table book(title, author, published);
1007
+ create table publisher(name, address);
1008
+ commit;
1009
+ """)
1010
1011
1012
.. method:: fetchone()
0 commit comments