Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions Doc/includes/sqlite3/executescript.py

This file was deleted.

11 changes: 9 additions & 2 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1007,9 +1007,16 @@ Cursor Objects

*sql_script* must be a :class:`string <str>`.

Example:
Example::

.. literalinclude:: ../includes/sqlite3/executescript.py
# cur is an sqlite3.Cursor object
cur.executescript("""
begin;
create table person(firstname, lastname, age);
create table book(title, author, published);
create table publisher(name, address);
commit;
""")


.. method:: fetchone()
Expand Down