I am using the following Oracle SQL query to list down the rows for a column that has values other than digits.
select * from XXX_ACCOUNTS_20110309 p
where regexp_like (bar_status,'[[^:digit:]]+');
The above query doesnt return any rows.
尝试这个:
where bar_status like '%[^0-9]%'
Try (I can't test it)
select * from XXX_ACCOUNTS_20110309 p
where not regexp_like (bar_status,'[[:digit:]]+');
or
select * from XXX_ACCOUNTS_20110309 p
where not regexp_like (bar_status,'^[[:digit:]]+$');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.