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 code FROM jos_rsticketspro_tickets WHERE message LIKE '%1. Fuente Dorada%';
该解决方案将匹配消息内容“ fuente ”。“福恩”。“奥拉达”。“ 1. Fuente Dorada ”等。
我怎样才能做到这一点?
也许这会奏效。它会检查有message一部分的行"1. Fuente Dorada"
message
"1. Fuente Dorada"
SELECT code FROM jos_rsticketspro_tickets WHERE "1. Fuente Dorada" LIKE concat("%", message, "%");