Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Check for special character in a string - response (2) by dnoeth

$
0
0

Hi Chandrashekar,
if oTranslate is installed it's easier.
When you got a specific list of those special characters you might do
 
WHERE CHAR_LENGTH(col) <> CHAR_LENGTH(oTranslate(col, '/_#.', ''))

 
A different approach is to define the non-special characters and then:
WHERE CHAR_LENGTH(oTranslate(col, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', '')) = 0
 
Dieter


Viewing all articles
Browse latest Browse all 27759

Trending Articles