Skip to content

Instantly share code, notes, and snippets.

@tkMageztik
Created October 20, 2016 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkMageztik/48132f79726ab9252360bca56fa7084b to your computer and use it in GitHub Desktop.
Save tkMageztik/48132f79726ab9252360bca56fa7084b to your computer and use it in GitHub Desktop.
Para buscar caracteres extraños fuera de la lista de caracteres especificados
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