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 f59a5c5 commit 2278dc7Copy full SHA for 2278dc7
Doc/includes/sqlite3/executescript.py
Doc/library/sqlite3.rst
@@ -813,9 +813,16 @@ Cursor Objects
813
814
*sql_script* must be a :class:`string <str>`.
815
816
- Example:
+ Example::
817
818
- .. literalinclude:: ../includes/sqlite3/executescript.py
+ # cur is an sqlite3.Cursor object
819
+ cur.executescript("""
820
+ begin;
821
+ create table person(firstname, lastname, age);
822
+ create table book(title, author, published);
823
+ create table publisher(name, address);
824
+ commit;
825
+ """)
826
827
828
.. method:: fetchone()
0 commit comments