Good way to run this search?

Post Reply
jkj2001
Posts: 142
Joined: Fri Mar 29, 2002 1:39 pm

Good way to run this search?

Post by jkj2001 »

Hi,

I'm trying to run a search in which the phrase has a plus sign in it, like so:

tsql "select * from mytable where myfield like '"Hello +"'"

Trouble is, I get a syntax error when I do that. I tried to escape the plus sign with a preceding backslash, but that didn't change things. Could you suggest a workaround? Thanks!
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Good way to run this search?

Post by mark »

like '"Hello +"'
would work (not being on the front of a term + is not special)
like 'Hello +'
would not and should be
like 'Hello =+'
pete.smith
Posts: 73
Joined: Tue May 17, 2005 2:08 pm

Good way to run this search?

Post by pete.smith »

how about "C++" ?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Good way to run this search?

Post by mark »

That should just work as long as you have an index expression that include +.
Post Reply