Monday, 9 July 2012

check if a string contains small letter in sql


select patindex('%[a-z]%'    COLLATE Latin1_General_BIN,'test')

select patindex( '%es%'    COLLATE Latin1_General_BIN,'Test')

No comments:

Post a Comment