Wild card search

  • Thread starter Thread starter Dino M. Buljubasic
  • Start date Start date
D

Dino M. Buljubasic

I am trying to simulate wild card search like for example:

cran* would return any word containing 'cran' at the begining
*cran would return any word containing 'cran' at the end
*cran* would return any word containing 'cran' in the middle

Here is whay I am doing but it does not work

SELECT whatever FROM aTable WHERE this = that AND CONTAINS(aColumn,
"cran+%")

I am fetching data from an SQL Server using full text indexing

Any help will be appreciated
 
I am trying to simulate wild card search like for example:

cran* would return any word containing 'cran' at the begining
*cran would return any word containing 'cran' at the end
*cran* would return any word containing 'cran' in the middle

Here is whay I am doing but it does not work

SELECT whatever FROM aTable WHERE this = that AND CONTAINS(aColumn,
"cran+%")

I am fetching data from an SQL Server using full text indexing

Any help will be appreciated
If cran is a variable then shouldn't it be "%" + cran +"%" ?
 
No, "cran" is not a variable. It is the word I am searching for. :)
 
No, "cran" is not a variable. It is the word I am searching for. :)

Ok the contains clause should be (aColumn,"cran*")

I'm not sure that you can do *cran or *cran*.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Wild Cards 5
EXCEL Wild Cards 2
Excel How to extract the data from Excel . 0
Advanced Filter & Wild Cards? 1
wild card?? formula question please 6
Rules with Wild Cards 10
Wild Card Doesn't Work ANymore 3
Wild Cards 4

Back
Top