Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

searching for CR or LF ot TAB

Status
Not open for further replies.

jfield817

Programmer
Jun 2, 2000
153
US
How does one search for CHAR(13, CHAR(10), CHAR(9) in a field , using SELECT and LIKE ...
select * from <tablename> where <fieldname> like '%char(13%'
doesnt work ...

There must be an escape character before the char(13)
Any ideas ?
thanks
John Field
 

select *
from <tablename>
where <fieldname> like '%' + char(13) + '%'
Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top