[英]Oracle SQL query to return row values if all rows have some value in column after grouping by another column
[英]Oracle SQL query to return rows that matches a column value having not a digit
我使用以下Oracle SQL查询列出具有除数字以外的值的列的行。
select * from XXX_ACCOUNTS_20110309 p
where regexp_like (bar_status,'[[^:digit:]]+');
上面的查询不会返回任何行。
尝试这个:
where bar_status like '%[^0-9]%'
试试(我无法测试)
select * from XXX_ACCOUNTS_20110309 p
where not regexp_like (bar_status,'[[:digit:]]+');
要么
select * from XXX_ACCOUNTS_20110309 p
where not regexp_like (bar_status,'^[[:digit:]]+$');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.