我需要动态运行 INSERT 和 CREATE Sqlite 语句。
"CREATE TABLE IF NOT EXISTS Menu"+counter+" (itemid INTEGER PRIMARY KEY, test TEXT, type TEXT, table TEXT)";
"INSERT OR IGNORE INTO Menu"+counter+" (itemid , test, type, table) VALUES (?, ?, ?, ?)";
如果我尝试运行,两个语句都会出现语法错误。
http://docs.phonegap.com/en/1.2.0/phonegap_storage_storage.md.html#SQLError SQLError.SYNTAX_ERR