简体   繁体   中英

Oracle SQL REGEXP_SUBSTR() and SUBSTR() issue

I am trying to modify a query that I have created to bring back only records that DO NOT start with the string 'PO:'

The records I want are all different in the way they start but none of the ones I want start with 'PO:'. Some may start with numbers or some may start with other words.

I know by using REGEXP_SUBSTR() or just SUBSTR() I can pull back data based solely on numbers or letters but how do I Not include certain words/strings.

Any help is appreciated!

you can use NOT

ex : yourcolumn not like 'PO%'

It accepts all values wich does not begin by 'PO'

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM