Skip to content
Open
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
Minor typos
Added a period to *.*format(tn= ...
  • Loading branch information
samparks authored Jun 17, 2018
commit f6f1aceceb482fcf42f93c05f795798ed51d0614
2 changes: 1 addition & 1 deletion tutorials/sqlite3_howto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ drop the index, which is also shown in the code below.
c.execute("ALTER TABLE {tn} ADD COLUMN '{cn}' {ct}"\
.format(tn=table_name, cn=new_column, ct=column_type))
c.execute("UPDATE {tn} SET {cn}='sebastian_r' WHERE {idf}=123456".\
format(tn=table_name, idf=id_column, cn=new_column))
.format(tn=table_name, idf=id_column, cn=new_column))

# Creating an unique index
c.execute('CREATE INDEX {ix} on {tn}({cn})'\
Expand Down