【发布时间】:2014-06-15 04:12:48
【问题描述】:
找到:
using % inside SQLite query with an NSString variable inside the ame quotes
如果搜索字符串位于变量的开头,则此 LIKE '%@%%' 有效。
如何在变量中任意位置查找字符串?
【问题讨论】:
标签: sqlite cocoa search nsstring
找到:
using % inside SQLite query with an NSString variable inside the ame quotes
如果搜索字符串位于变量的开头,则此 LIKE '%@%%' 有效。
如何在变量中任意位置查找字符串?
【问题讨论】:
标签: sqlite cocoa search nsstring
这是标准 SQL。您需要在搜索文本的两侧使用%。所以你的格式字符串是LIKE %%%@%%。
【讨论】: