【发布时间】:2013-06-18 14:26:30
【问题描述】:
我正在尝试在 mozilla sqlite 插件中执行此语句
alter table (select tbl_name from sqlite_master where rowid=1) add GUID varchar
但这会出错:
SQLiteManager: 可能的 SQL 语法错误:alter table (select tbl_name from sqlite_master where rowid=1) add GUID varchar [ near "(": syntax error ] 异常名称:NS_ERROR_FAILURE 异常消息:组件返回失败代码:0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.createStatement]
语句 :select tbl_name from sqlite_master where rowid=1 工作正常
【问题讨论】: