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 table WHERE row BETWEEN 'MATCH_2' AND 'MATCH_5';
或转换为 int
SELECT * FROM table WHERE CAST(SUBSTRING(row FROM 7) AS UNSIGNED) BETWEEN 2 AND 5;