I have a table (say ELEMENTS
) with a VARCHAR field named NAME
encoded in ccsid 1144
. I need to find all the strings in the NAME
field which contain "non ascii characters", that is characters that are in the ccsid 1144
set of characters without the ascii ones.
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
I think you should be able to create a function like this:
And then write:
(Disclaimer: completely untested.)
By the way — judging by the documentation, it seems that
VARCHAR
is a string of bytes, not of Unicode characters. (Bytes range from 0 to 0xFF; Unicode characters range from 0 to 0x10FFFD.) If you're interested in supporting Unicode, you might want to use a different data-type.