我希望创建一个mysql查询,该查询将排除使用regexp以数字开头的行。例如,这里有1列“指示器”,其值如下:
5-Year Treasury Gilt Auction
52-Week Bill Auction
6-Month Bill Auction
ADP Nonfarm Employment Change
All Car Sales我想创建一个查询,例如:
SELECT * FROM table WHERE indicators = [does not start with a digit...];在mysql中表达这种查询的正确方法是什么?
发布于 2016-12-19 02:26:50
你可以这样做:
select t.*
from t
where t.indicators regexp '^[^0-9].*$'或者,您根本不需要正则表达式:
where left(t.indicators, 1) not between '0' and '9'https://stackoverflow.com/questions/41214983
复制相似问题