gpt4 book ai didi

sqlite - 在字符串中的任意位置使用 LIKE 进行搜索

转载 作者:行者123 更新时间:2023-12-03 17:21:38 25 4
gpt4 key购买 nike

发现:

using % inside SQLite query with an NSString variable inside the ame quotes

如果搜索字符串位于变量的开头,则此 LIKE '%@%%' 有效。

如何在变量中的任意位置搜索和查找字符串?

最佳答案

这是标准 SQL。您需要在搜索文本两侧添加 %。所以你的格式字符串将是LIKE %%%@%%

关于sqlite - 在字符串中的任意位置使用 LIKE 进行搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24226499/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com