【发布时间】:2020-10-07 12:23:37
【问题描述】:
我想在sql表中添加可为空的列,但是更改表格式会导致错误:
box.execute([[
CREATE TABLE test(
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"name" TEXT NOT NULL
)
]])
f = box.space.TEST:format()
table.insert(f, {type='string', name='description', is_nullable=true})
box.space.TEST:format(f)
error: 'Can''t modify space ''TEST'': exact_field_count must be either 0 or >= formatted
field count'
那么有什么办法可以改变sql表的格式吗?
【问题讨论】: