ios - FMDB占位符 ? 提示语法不对
阿神
阿神 2017-04-18 09:54:00
0
3
482

我这样创建一个表 可以

为什么我这样加字段 他提示我?语法不对

阿神
阿神

闭关修行中......

reply all(3)
伊谢尔伦

It is actually a variable parameter function as follows, which is a little different from what you understand. In fact, you can write a temporary variable and format it before passing it in.


- (BOOL)executeUpdate:(NSString*)sql, ... {
    va_list args;
    va_start(args, sql);

    BOOL result = [self executeUpdate:sql error:nil withArgumentsInArray:nil orDictionary:nil orVAList:args];

    va_end(args);
    return result;
}
小葫芦

fmdb is required. The execution statement cannot be written like this. Try writing it after an executed callback

刘奇

Explanation: SQL parameters and SQL statement parameters are two things. For example, field names and values ​​can be uncertain, but tableName must be certain.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template