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 08 May 2003, 03:07 PM
  #1  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 08 May 2003, 03:17 PM
  #2  
Andrewza
Scooby Regular
 
Andrewza's Avatar
 
Join Date: Jan 2002
Posts: 667
Likes: 0
Received 0 Likes on 0 Posts
Post

...WHERE query LIKE '%apples%'...
Old 08 May 2003, 03:22 PM
  #3  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

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



Quick Reply: --== Help with SQL query ==--



All times are GMT +1. The time now is 12:22 AM.