diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2022-08-30 08:35:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 08:35:21 (GMT) |
commit | af9fbec27e83252b6dc1bb27f228f80319ac85bd (patch) | |
tree | 172127f18bc9b0bd3c09ec100cf246933aaa1680 /Doc/library | |
parent | 069fefdaf42490f1e00243614fb5f3d5d2614b81 (diff) | |
download | cpython-af9fbec27e83252b6dc1bb27f228f80319ac85bd.zip cpython-af9fbec27e83252b6dc1bb27f228f80319ac85bd.tar.gz cpython-af9fbec27e83252b6dc1bb27f228f80319ac85bd.tar.bz2 |
[3.10] Docs: normalize SQL style in sqlite3 docs (GH-96403). (#96409)
(cherry picked from commit 6d403e264a7dcd1544a91708f139c6dd8612204d)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/sqlite3.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 6d9f929..18a03a2 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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; """) |