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.
我正在使用查询,例如
SELECT * FROM tablename WHERE token LIKE 'v_%'
这导致记录的标记以v_(这正是我想要的)开头,但它也显示以仅开头的记录v(附上截图)
v_
v
为什么会这样?我错过了什么吗?
你需要,_因为它是一个通配符
_
SELECT * FROM tablename WHERE token LIKE 'v\_%'
或者
SELECT * FROM tablename WHERE token LIKE 'v|_%' ESCAPE '|';