JSProgramIA
Programmer
I am trying to figure out which column the query was qualified on.
For instance:
And what I want to know is, which column qualified the query. Was it product_id, or product_description, or both? I am trying to use this in a search results page, and I would like to tell the user which column their keyword found a match on.
Is it possible to return a user defined column, such as matched_in and have a value in that column describe which column we made a match on?
Thanks for any help you may offer.
For instance:
Code:
SELECT *
FROM products
WHERE product_id LIKE '%somethingHere%'
OR product_description LIKE '%somethingHere%'
And what I want to know is, which column qualified the query. Was it product_id, or product_description, or both? I am trying to use this in a search results page, and I would like to tell the user which column their keyword found a match on.
Is it possible to return a user defined column, such as matched_in and have a value in that column describe which column we made a match on?
Thanks for any help you may offer.