使用 unicode char 代码查询 MySQL

发布于 2024-09-04 23:23:39 字数 146 浏览 1 评论 0原文

我在搜索 MySQL 表时遇到问题,尝试在特定列中查找包含字符(UTF-16 代码 200E)的条目。

这个特定的代码没有字形,因此当我尝试将其粘贴到我的搜索词中时它似乎不起作用。有没有办法将字符指定为其各自的代码点而不是进行查询?

谢谢, -本

I have been having trouble searching through a MySQL table, trying to find entries with the character (UTF-16 code 200E) in a particular column.

This particular code doesn't have a glyph, so it doesn't seem to work when I try to paste it into my search term. Is there a way to specify characters as their respective code point instead for a query?

Thanks,
-Ben

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

少年亿悲伤 2024-09-11 23:23:39

未经测试,但 CHAR()可以用于此:

CHAR(0x200E);

我现在无法设置完整的测试用例,请让我们知道它是否有效。

Not tested, but CHAR() could work for this:

CHAR(0x200E);

I can't set up a full test case right now, let us know whether it worked.

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