Hi
I have a mysql table name ( Discriptions ) that holds many normal text discriptions (doh'). How do I write a mysql query to search this table!
Example: the description 'red paint': If I enter 'paint red! My query will not find it!
Thanks for any help!
Paul
luap599
0
Newbie Poster
Recommended Answers
Jump to PostYou don't say which programming language you are using to compose your sql statement, but as a first shot I would suggest you program something like this:-
If the search term contains one word:
SELECT * FROM descriptions WHERE desc LIKE '%firstword%'
If the search term …
All 2 Replies
darkagn
315
Veteran Poster
Featured Poster
Simon Tite
15
Light Poster
darkagn
commented:
Excellent suggestion and citation. Polite and helpful answer to the OP's question.
+3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.