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.
我想选择字段 (varchar (45)) 包含一个且仅一个字母 x 且字段长度大于 20 的记录
在 MySQL 中,您可以执行以下操作:
SELECT * FROM tablename WHERE fieldname REGEXP '^[x]{20,}$'