Link to home
Start Free TrialLog in
Avatar of karthik80c
karthik80cFlag for United States of America

asked on

How to change Search query that contain particular word n Sql

Hi Experts ,

We need to search in database with the record contains particular Data in it e.g. name column could search for all words that contains  'jon' in it. Is this correct query

my code
SELECT Name FROM Person WHERE Name LIKE '%Jon%'

Open in new window

Avatar of Lokesh B R
Lokesh B R
Flag of India image

Hi,

yes it is correct.

It will look for the word where it contains "Jon" in the Name column.
Avatar of karthik80c

ASKER

Hi Lokesh ,

What if i need to go for exact match
SOLUTION
Avatar of Lokesh B R
Lokesh B R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank You Experts For Your Great Effort