Created
October 20, 2016 20:11
-
-
Save tkMageztik/48132f79726ab9252360bca56fa7084b to your computer and use it in GitHub Desktop.
Para buscar caracteres extraños fuera de la lista de caracteres especificados
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM BFPCYFILES.CUMST c | |
WHERE | |
cuslgt IN (2,4) and | |
cusna1 LIKE '%*%' | |
AND ASCII(TRIM(TRANSLATE( | |
cusna1, | |
' ', -- empty string | |
'*()0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' | |
))) not in (10,64) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment