April 19, 2007 at 10:19 am
how do i filter a TSQL string such as >> St. Ann's
April 19, 2007 at 10:43 am
What exactly do you mean, filter to remove from the string, filter to remove / include from a return set?
April 19, 2007 at 11:12 am
Yes, i want it to be remove from the result set
April 19, 2007 at 11:20 am
well, you could do something like 'not in'
select names from list where names not in ('foo','bar','qwerty')
or
select names from list where names not in (select excludenames from filtertable)
April 19, 2007 at 11:35 am
have you tested it with: in ('St. Ann's')
the extra apostrophe is causing the prob
April 19, 2007 at 11:45 am
Denby, to put apostrophes in strings, you "escape" them by doubling them up.
Try:
in ('St. Ann''s')
April 19, 2007 at 12:02 pm
ok man thx
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply