0

为什么看起来相同的 sql,却有一条查询不到数据

 2 years ago
source link: https://www.v2ex.com/t/866350
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

为什么看起来相同的 sql,却有一条查询不到数据

  jwh199588 · 42 分钟前 · 313 次点击


看起来相同的两个 sql 语句,为什么第一条查询不到数据,有哪位大神知道原因

8 条回复    2022-07-15 11:28:14 +08:00

moen      39 分钟前 via Android   1

字符串里掺杂了不可见字符吧

Saxton      37 分钟前

找个在线统计文字的 把两条 SQL 复制进去对比一下

dongtingyue      32 分钟前

试过调换两个 sql 语句测试么

xiangyuecn      28 分钟前

#1 不出意外,应该是 \u202D 或 \u202C /t/725189

xiangyuecn      25 分钟前

另外 trim 函数 也是反人类的,有些语言能去掉,有些不能😂

归根结底,还是 输入框 /编辑器 反人类,好在 chrome 控制台还是比较良心的 这种字符一眼就能看出来


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK