Jan 5, 2007 #1 Kendel Programmer Apr 24, 2002 1,512 US Hi All, I'm trying to search for customer's name with an apostrophen how can I do that? I'm testing it in Query analyzer and this won't work: Select * from CustTable where customerName like '%'%' Thanks.
Hi All, I'm trying to search for customer's name with an apostrophen how can I do that? I'm testing it in Query analyzer and this won't work: Select * from CustTable where customerName like '%'%' Thanks.
Jan 5, 2007 1 #2 SQLDenis Programmer Oct 1, 2005 5,575 US you have to double the tick Select * from CustTable where customerName like '%''%' Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Upvote 0 Downvote
you have to double the tick Select * from CustTable where customerName like '%''%' Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/
Jan 5, 2007 1 #3 gmmastros Programmer Feb 15, 2005 14,910 US Double the single-quote within the percents, like this... Code: Select * from CustTable where customerName like '%'[!]'[/!]%' -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
Double the single-quote within the percents, like this... Code: Select * from CustTable where customerName like '%'[!]'[/!]%' -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
Jan 5, 2007 Thread starter #4 Kendel Programmer Apr 24, 2002 1,512 US Thank you guys. Upvote 0 Downvote