Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching Teradata via regular expressions.

Status
Not open for further replies.

CapsuleCorpJX

IS-IT--Management
Jun 23, 2004
70
US
Hey guys, I know I can do a string search in teradata using the % wild card. But does Teradata handle regular expression searchs? Like say give me all the rows in a table that have a phone number in it matching format (###-####)
 
You have two wildcards : % and _
_ replaces a single char.
So you can test your format with : expr like '___-____'
 
Hmm, but that doesn't specify integers only at those positions.
So ABC-DEFG will also work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top