sqlite 查询中的 & 符号

发布于 2024-09-04 17:04:53 字数 190 浏览 4 评论 0原文

如何构建在过滤器中包含&符号的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

影子是时光的心 2024-09-11 17:04:54

& 在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文