考虑下表:
create table mixedvalues (value varchar(50)); insert into mixedvalues values ('100'), ('ABC100'), ('200'), ('ABC200'), ('300'), ('ABC300'), ('400'), ('ABC400'), ('500'), ('ABC500');
如何编写仅返回 数字 值的select语句
100 200 300 400 500
SELECT * FROM mixedvalues WHERE value REGEXP '^[0-9]+$';