mirror of
https://github.com/rasbt/python_reference.git
synced 2025-02-17 13:58:13 +00:00
Minor typos
Added a period to *.*format(tn= ...
This commit is contained in:
parent
b0bd985d7e
commit
f6f1aceceb
|
@ -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})'\
|
||||
|
|
Loading…
Reference in New Issue
Block a user