Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005

    Unanswered: High Light Words in Query

    I creating an SQL script that will query a database and return the results to an html page. The script searches for a keyword and then displays the results. What I want to do is when the result is returned, I want to highlight the word that was being searched in the result set. I would like the word to be bolded in the query. How can this be done?

  2. #2
    Join Date
    Apr 2002
    Toronto, Canada
    select replace(description,'searchword'
      from yourtable
     where description like '%searchword%' | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts