sqlite 查询中的 & 符号
如何构建在过滤器中包含&符号的sqlite查询:
SELECT id FROM mediainfo WHERE album="Betty & Kate";
我使用sqlite C接口(sqlite3_bind_text()和查询构建时的?标记),但C查询和SQLite管理员都不返回任何数据
How to construct sqlite query containing ampersand in filter:
SELECT id FROM mediainfo WHERE album="Betty & Kate";
I use sqlite C interface (sqlite3_bind_text() and ? marks while query building) but neither C query nor SQLite Administrator return any data
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
&
在 C 字符串或 SQL 字符串中都不是特殊字符,所以我认为这不是问题。尝试使用 SQLite 数据库浏览器 等工具执行相同的查询。&
is not a special character either in C strings or in SQL strings, so I don't think that's the problem. Try the same query from a tool like SQLite Database Browser.