📅  最后修改于: 2022-03-11 14:45:31.291000             🧑  作者: Mango
conn = sqlite3.connect(':memory:')
c = conn.cursor()
try:
c.execute('ALTER TABLE mytable ADD COLUMN newcolumn;')
except:
pass # handle the error
c.close()