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.
我需要检索诸如“Name19”、“Name21”、“Name56”之类的记录,这些记录在Mysql中。请帮助如何获取它。
SELECT * FROM YourTable WHERE YourColumn regexp '^Name[0-9]+'
试试这个
SELECT * FROM <NameTable> WHERE <Name> LIKE '%[0-9]'