在 phonegap 文档中它指出:
“此方法将创建一个新的 SQL Lite 数据库”
这是不使用传统 SQL 的唯一提示,但 SQL Lite 与 sqlite 不同吗?
我要运行的代码是使用 mySQL,我已经在 sqlite 中对其进行了测试,但它不会以相同的方式工作,所以如果我不得不重写它会很烦人!
谢谢
With PhoneGap, you always get SQLite, which is a traditional SQL engine. (There are very few differences to the SQL standard.)
With MySQL, you have more differences, and it is likely that you have used some of its non-traditional extensions.
If you do want to use your MySQL-specific code in PhoneGap, your only choice is to rewrite it.