SQLite FMDB在iOS上创建表

时间:2012-03-14 16:53:17

标签: ios sqlite select fmdb create-table

在iOS和SQLite库FMDB中,我有一个SELECT语句(SELECT * FROM table1,table2 WHERE table1.field = ... ORDER BY ...) 我这样做是正确的:

[db executeQuery:@"SELECT * FROM table1, table2 WHERE table1.field = ... ORDER BY ...",myArg];

我想根据此请求创建一个表。所以我这样做:

[db executeUpdate:@"CREATE TABLE tableResult AS (SELECT * FROM table1, table2 WHERE table1.field = ... ORDER BY ...)",myArg];

但它返回NO作为布尔结果。

你知道为什么吗? 谢谢!

0 个答案:

没有答案