Skip to content
Snippets Groups Projects
Unverified Commit af9fbec2 authored by Erlend E. Aasland's avatar Erlend E. Aasland Committed by GitHub
Browse files

[3.10] Docs: normalize SQL style in sqlite3 docs (GH-96403). (#96409)


(cherry picked from commit 6d403e26)

Co-authored-by: default avatarErlend E. Aasland <erlend.aasland@protonmail.com>
parent 069fefda
Branches
Tags
No related merge requests found
......@@ -964,7 +964,7 @@ Cursor objects
("row2",),
]
# cur is an sqlite3.Cursor object
cur.executemany("insert into data values(?)", rows)
cur.executemany("INSERT INTO data VALUES(?)", rows)
.. method:: executescript(sql_script, /)
......@@ -982,11 +982,11 @@ Cursor objects
# 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;
BEGIN;
CREATE TABLE person(firstname, lastname, age);
CREATE TABLE book(title, author, published);
CREATE TABLE publisher(name, address);
COMMIT;
""")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment