Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

--== Help with SQL query ==--

Thread Tools
 
Search this Thread
 
Old May 8, 2003 | 03:07 PM
  #1  
rik1471's Avatar
rik1471
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 4,788
Likes: 0
Question

I have an ASP page I have written which displays the results from an SQL database from a simple html page query. I need to know how to query the database for any records which 'contain' the query, not 'equal' to the query.

E.g.

Record 1 fruits: "apples, pears, oranges"

If I do a select * from fruits where "query" = 'apples' it wouldn't display record 1 in the results.

Is there any way of displaying record 1 because it contains the word apples within it??

Thanx.
Reply
Old May 8, 2003 | 03:17 PM
  #2  
Andrewza's Avatar
Andrewza
Scooby Regular
 
Joined: Jan 2002
Posts: 667
Likes: 0
Post

...WHERE query LIKE '%apples%'...
Reply
Old May 8, 2003 | 03:22 PM
  #3  
rik1471's Avatar
rik1471
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 4,788
Likes: 0
Post

perfect
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
ALEXSTI
General Technical
5
Sep 28, 2015 09:29 PM
Ozne
General Technical
2
Sep 27, 2015 03:06 PM
stevem2k
Non Scooby Related
8
Jul 6, 2011 11:11 PM
Mkhan
Non Scooby Related
14
Aug 9, 2001 02:07 AM
SDB
Non Scooby Related
2
May 26, 2001 11:55 PM




All times are GMT +1. The time now is 01:37 PM.