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.
我需要像 where (1,2,3) match (column2)这里一样检查 column2 本身是一个逗号分隔的字符串,如果 column2 中有任何值,我们需要获取该行。提前致谢。
where (1,2,3) match (column2)
使用 MySQL 的IN运算符:
IN
WHERE column2 IN (1,2,3)