Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
中给出的_(下划线)SQL不支持查询中
_
SQL
例子 :
SELECT * FROM employee WHERE NAME LIKE '%k_p%';
这匹配并将许多行与包含的行分开k_p
k_p
SQL有人可以协助如何实现这一目标Hibernate吗?谢谢。
Hibernate
您是否尝试过逃避它:
SELECT * FROM employee WHERE NAME LIKE '%k\_p%';
\_而不仅仅是_.
\_
我知道这已经很晚了,但可以成为其他程序员的解决方案。你可以试试
SELECT * FROM employee WHERE NAME LIKE '%k[_]p%';