I want to query for the exact match of a string from a database table.
When I write the query as
select description from tproduct where description like '%diamond%'
it runs and gives the results as a wild card
query. For example, I got ringdiamond, diamondmaster, etc.
But I want to get only "diamond".
For this I did as:
select description from tproduct where description = 'diamond'
But it is giving an error:
Error: Unknown column 'diamond' in 'where clause'
The description column contains:
This bracelet is composed of round diamond surrounded by milgrain detailing. Its secure setting prevents it from twisting and ensures it will sit impeccably on her wrist.
This stylish design is the perfect accessory for the day or evening. Akoya cultured pearls are lined up by a string of bezel-set round diamond.