SQL Language (MOSC)

MOSC Banner

Need help to find a pattern in sql

edited Mar 8, 2016 5:18AM in SQL Language (MOSC) 4 commentsAnswered

Hi I have a table, I try to get the data 123-45-6789 or 123a45b6789, the pattern is like 999?99?9999. How can I write the sql to get these data?

Thanks,

SQL> SQL> select * from test3;

NAME
------------------------------
123-45-6789
123a45b6789
123456789
2e123456789dfdfs
2312345678977

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center