How to search Words From row using SQL Query?

  • How to search Words From row using SQL Query?

  • Ajith 42213 (4/10/2012)


    How to search Words From row using SQL Query?

    a Row has more than one column...if you mean searching all the char/varchar/nchar columns in a given table, the recommended solution is Full Text indexing.

    any other solution requires an a table scan of the entire table, which would be slow by comparison, and would get slowere as the table gets bigger.

    the query would look something like ...WHERE col1 LIKE @word + '%' OR col2 LIKE @word + '%' col3 LIKE @word + '%'

    If that's not what you were asking, cna you re-phrase the question?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply