为什么在 postgres 中对文本列的查询具有 _ 的工作原理。但是没有`_`是行不通的

Why does a query on text column in postgres work having `_` works. But without `_` does not work

这基本上是对 postgres 13.1 中文本列的查询结束

SELECT translations.value 
FROM "translations" 
WHERE (VALUE ILIKE '%deg!');
 value
-------
(0 rows)

鉴于

SELECT "translations".* 
FROM "translations" 
WHERE (VALUE ILIKE '%deg!_');
                    value
---------------------------------------------
 --- Gratulerer, du har <br> registrert deg!+
 --- Gratulerer, du har <br> registrert deg!+
 --- Vi gleder oss til å trene med deg!     +
 --- Vi gleder oss til å trene med deg!     +
 --- Vi kommer snart tilbake til deg!       +

那是感叹号后面多了一个字符

要找出可能是什么字符,请将结果转换为 bytea,以便您可以逐字节查看它们:

SELECT CAST (translations.value AS bytea)
FROM translations
WHERE (VALUE ILIKE '%deg!_');