在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作为布尔结果。
你知道为什么吗? 谢谢!