检查oracle sql中列中的6个或更多连续数字

时间:2013-11-11 16:36:49

标签: sql regex oracle

我需要查询帮助来识别非结构化数据。我需要识别其数据中连续数超过6个的所有行。我知道我们可以使用像^ [0-9]这样的正则表达式。

例如:

我有一个名为Address的列。地址列可以包含6个或更多个连续数字。我需要确定哪些行包含超过6个连续的数字。

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

1 个答案:

答案 0 :(得分:0)

我是第二个Egor Skriptunoff,您可以在SQLFiddle

上对此演示进行回答