【发布时间】:2012-11-29 11:37:49
【问题描述】:
我试图只返回 colA 和 colB 不包含数字或空格的行
到目前为止,这是我的代码。
SELECT * FROM table_name WHERE colA REGEXP '[^0-9^\W]' AND colB REGEXP '[^0-9^\W]'
给定数据集
colA colB
---------- ----------
test | testB
33 | text <- this is not returned
blah | 0123A <- this is returned
我假设我的问题与我的正则表达式有关...请帮忙?
【问题讨论】: