the right way for using "BETWEEN ascii(0) AND ascii(97)", would be to state
were column[1] between ascii(0) and ascii(97)
Quote:
|
why '0*', '1*', '2*' shows?
|
because the character '0' has a value of 41 in the ascii table, so it is between
ascii(0) and ascii (97). CHAR values are sorted by ascii value, position by position from left to right, so you'll have for instance:
'A'
'AA'
'ABCGGGS'
'ACA'
'ACBDFHJ'
'BC'
'BFXYU'
the value considered is not the sum of the ascii values of the string.
Let's stick to what you really want to do in your clause. Please tell me with plain words what you want in your where clause. It looks strange for me that you can have non printable CHARACTERS in a where clause. There values are rarely 'human inputtable' at least.