Re: [PHP-DB] sql: LIKE

2001-01-11 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > "SELECT bar FROM foo WHERE bar LIKE '%foo%'" should return something like > the order > > bar > --- > 'foo' (exact match) > 'the foo is a foo is a foo' (3 matches) > 'have you seen the foo?' (1 match) What DBMS?

[PHP-DB] sql: LIKE

2001-01-10 Thread venome
> is there a way to sort the results of a ".. LIKE" query by hits? i'm sorry i have 1. misunderstood the effect of LIKE 2. posted a question easy to get wrong so, what i need to know is: how can i sort the results of "SELECT * FROM foo WHERE bar LIKE '%searchterm%'" or a similar search query by

Re: [PHP-DB] sql: LIKE

2001-01-10 Thread Victor Foitzik
if you mean something like "SELECT * FROM THETABLE WHERE subject LIKE '%foo%' ORDER BY hitcount ASC" yes it is ... ;-) >Hi there. Is there a way to sort results of a '.. WHERE subject LIKE %foo%' >query by HITS in order to use it for a search engine? -- PHP Database Mailing List (http://www.ph

RE: [PHP-DB] sql: LIKE

2001-01-10 Thread Cal Evans
Need to see the entire Select statement. Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 4:19 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] sql: LIKE Hi there. Is there a way to sort results of a

[PHP-DB] sql: LIKE

2001-01-10 Thread venome
Hi there. Is there a way to sort results of a '.. WHERE subject LIKE %foo%' query by HITS in order to use it for a search engine? -- Sent through GMX FreeMail - http://www.gmx.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma