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.
我有一列的值如 24、25、26、27,我想匹配 24(或其他数字)。我喜欢基于正则表达式不知道该怎么做?
我希望匹配应该清楚,比如 24,25,26 应该匹配 24 而不是 243
你可以看看
SELECT FIND_IN_SET('24','24,25,26 ');
注意请不要将 vales 存储为逗号分隔,而是规范化您的结构