简体   繁体   English

在Oracle SQL的列中检查6个或更多连续数字

[英]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. 我需要识别所有在数据中具有连续6个以上数字的行。 I know we can use regular expressions like ^[0-9] for the same. 我知道我们可以使用^ [0-9]这样的正则表达式。

For example: 例如:

I have a column named Address. 我有一列名为地址。 The address column may contain 6 or more consecutive numbers. 地址列可能包含6个或更多的连续数字。 I need to identify which rows contain more than 6 consecutive numbersi in them. 我需要确定哪些行包含超过6个连续numbersi。

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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