|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Search a varchar2 field for ASCII 27
I have to determine if field if any of the characters in a varchar2(30) is ASCII 27. Is there a way to do this with a SQL select statement?
I could write a PL/SQL function to loop and test by substr() each character but that seems to be the hard way... Thanks for any help Limsk |
|
#2
|
|||
|
|||
|
select * from table
where col like '%' || chr(27) || '%'
__________________
El éxito consiste en una serie de pequeñas victorias día a día MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html |
|
#3
|
|||
|
|||
|
Works great, thank you
Limsk |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Search a varchar2 field for ASCII 27 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|