简体   繁体   中英

Check for 6 or more consecutive numbers in a column in oracle sql

I need help with a query to identify unstructured data. I need to identify all the rows which have more than 6 consecutive numbers in their data. I know we can use regular expressions like ^[0-9] for the same.

For example:

I have a column named Address. The address column may contain 6 or more consecutive numbers. I need to identify which rows contain more than 6 consecutive numbersi in them.

675467 should be the output
67433232 should be the output
4453 should not be the output.

我第二个是Egor Skriptunoff,您可以在SQLFiddle上的此演示中找到答案

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