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 StuffType WHERE placement IN('L','V','X','XL','VL','LV');
看看我需要如何将 LV 重复为 VL?mysql有没有一种方法可以在没有正确顺序的情况下根据内容识别行?
如果您只想匹配包含这三个字母的任意组合的所有记录,则可以使用正则表达式模式匹配:
WHERE placement RLIKE '^[LVX]+$'