Re: Matching problem

2006-05-09 Thread Wolfram Kraus
Marcus Bointon wrote: On 9 May 2006, at 14:27, Wolfram Kraus wrote: WHERE concated_field LIKE '%87682%' No, because that would also match numbers that contain that sequence like '18768232876825'. WHERE concated_field LIKE '87682<%' OR concated_field LIKE '%>87682' Still poor performanc

Re: Matching problem

2006-05-09 Thread Barry
Marcus Bointon schrieb: On 9 May 2006, at 14:27, Wolfram Kraus wrote: WHERE concated_field LIKE '%87682%' No, because that would also match numbers that contain that sequence like '18768232876825'. 2. This doesn't sound like a good DB-Design, why don't you use two seperated fields for bo

Re: Matching problem

2006-05-09 Thread Marcus Bointon
On 9 May 2006, at 14:27, Wolfram Kraus wrote: WHERE concated_field LIKE '%87682%' No, because that would also match numbers that contain that sequence like '18768232876825'. 2. This doesn't sound like a good DB-Design, why don't you use two seperated fields for both numbers, or a m:n ta

Re: Matching problem

2006-05-09 Thread Barry
彭一凡 schrieb: > try this: > WHERE concated_field LIKE '87682%' > or > WHERE concated_field LIKE '87682_' > would give me 876825 what i am not looking for. And i were also looking for 87682. So this doesn't work. But thanks anyway :) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o

Re: Matching problem

2006-05-09 Thread Barry
Wolfram Kraus schrieb: Barry wrote: Hello everyone! I have a slight problem matching rows. My problem is the Value in a textfield is: "8768239857" I created that with concat. Is there a way to match one specific number out of that field? like WHERE SUPERFUNCTION(concated_field) = 87682 WHER

Re: Matching problem

2006-05-09 Thread 彭一凡
try this: WHERE concated_field LIKE '87682%' or WHERE concated_field LIKE '87682_' it is based on SQL-99, not using PHP - Original Message - From: "Barry" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 09, 2006 8:49 PM Subject: Matching problem &g

Re: Matching problem

2006-05-09 Thread Wolfram Kraus
Barry wrote: Hello everyone! I have a slight problem matching rows. My problem is the Value in a textfield is: "8768239857" I created that with concat. Is there a way to match one specific number out of that field? like WHERE SUPERFUNCTION(concated_field) = 87682 WHERE concated_field LIKE '%

Re: Matching problem

2006-05-09 Thread Barry
Barry schrieb: Hello everyone! I have a slight problem matching rows. My problem is the Value in a textfield is: "8768239857" I created that with concat. Is there a way to match one specific number out of that field? like WHERE SUPERFUNCTION(concated_field) = 87682 Is something like that poss

Matching problem

2006-05-09 Thread Barry
Hello everyone! I have a slight problem matching rows. My problem is the Value in a textfield is: "8768239857" I created that with concat. Is there a way to match one specific number out of that field? like WHERE SUPERFUNCTION(concated_field) = 87682 Is something like that possible in any way?

Re: one word fulltext matching problem...

2002-11-11 Thread Bjorn Palsson
At 15:36 2002-11-10 -0800, you wrote: >>From: "A. J. Maclean" <[EMAIL PROTECTED]> >> >>I have a query like this: >> >>SELECT * FROM bc_posts WHERE MATCH (post_city, post_location, post_details, >>post_message) AGAINST ('webster'); >> >>I get the results as follows: >> >>webster hall >>webster >>web

RE: one word fulltext matching problem...

2002-11-10 Thread A. J. Maclean
From: Jan Steinman [mailto:Jan@;Bytesmiths.com] Sent: Sunday, November 10, 2002 6:37 PM To: [EMAIL PROTECTED] Subject: Re: one word fulltext matching problem... Without ORDER BY clause, results of a SELECT are in arbitrary order. That's just the way SQL works -- there is no "relevan

Re: one word fulltext matching problem...

2002-11-10 Thread Jan Steinman
>From: "A. J. Maclean" <[EMAIL PROTECTED]> > >I have a query like this: > >SELECT * FROM bc_posts WHERE MATCH (post_city, post_location, post_details, >post_message) AGAINST ('webster'); > >I get the results as follows: > >webster hall >webster >webster hall club > >How come the exact match (i.e. "

Re: one word fulltext matching problem...

2002-11-10 Thread Octavian Rasnita
PROTECTED]> Sent: Sunday, November 10, 2002 1:16 PM Subject: one word fulltext matching problem... I have a query like this: SELECT * FROM bc_posts WHERE MATCH (post_city, post_location, post_details, post_message) AGAINST ('webster'); I get the results as follows: webster hall w

one word fulltext matching problem...

2002-11-10 Thread A. J. Maclean
I have a query like this: SELECT * FROM bc_posts WHERE MATCH (post_city, post_location, post_details, post_message) AGAINST ('webster'); I get the results as follows: webster hall webster webster hall club How come the exact match (i.e. "webster") does not get a higher relevance? I remember se

RE: Pattern Matching Problem

2002-01-29 Thread Bret Ewin
January 29, 2002 1:15 PM To: [EMAIL PROTECTED] Subject: Pattern Matching Problem Hello, I have a big problem! I need to match all patterns in schdays from a variable schdays and if schdays = mwf it only turns up mwf and not all entries containing M, W or F. Is there a way to do this? mysql> sel

RE: Pattern Matching Problem Solved

2002-01-29 Thread Douglas Brantz
CTED]] Sent: Tuesday, January 29, 2002 3:46 PM To: Douglas Brantz; [EMAIL PROTECTED] Subject: RE: Pattern Matching Problem SELECT schdays FROM courses WHERE (schdays LIKE "M") OR (schdays LIKE "W") OR (schdays LIKE "F") Matthew Walker Ecommerce Project Manager Mountain

RE: Pattern Matching Problem

2002-01-29 Thread Matthew Walker
2 1:15 PM To: [EMAIL PROTECTED] Subject: Pattern Matching Problem Hello, I have a big problem! I need to match all patterns in schdays from a variable schdays and if schdays = mwf it only turns up mwf and not all entries containing M, W or F. Is there a way to do this? mysql> select schday

Re: Pattern Matching Problem

2002-01-29 Thread Paul DuBois
At 15:15 -0500 1/29/02, Douglas Brantz wrote: >Hello, > >I have a big problem! I need to match all patterns in schdays from a >variable schdays and if schdays = mwf it only turns up mwf and not all >entries containing M, W or F. Is there a way to do this? Yes, but you can't do it with LIKE excep

Re: Pattern Matching Problem

2002-01-29 Thread Christopher Thompson
At 03:15 PM 1/29/2002 -0500, Douglas Brantz wrote: >Hello, > >I have a big problem! I need to match all patterns in schdays from a >variable schdays and if schdays = mwf it only turns up mwf and not all >entries containing M, W or F. Is there a way to do this? > >mysql> select schdays from course

Pattern Matching Problem

2002-01-29 Thread Douglas Brantz
Hello, I have a big problem! I need to match all patterns in schdays from a variable schdays and if schdays = mwf it only turns up mwf and not all entries containing M, W or F. Is there a way to do this? mysql> select schdays from courses where schdays LIKE "%MWF%"; +-+ | schdays | +-

Re: help please, patter matching problem

2002-01-12 Thread Douglas Forrest
PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, January 12, 2002 4:16 PM Subject: Re: help please, patter matching problem > No closing quotes in prepare. > > Also, I've never seen code that's looks quite like that; this may be > cleaner: > > $sth=$dbh->pre

Re: help please, patter matching problem

2002-01-12 Thread Douglas Forrest
ROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 12, 2002 9:49 AM Subject: help please, patter matching problem > mysql and Perl > > Can someone tell me what's wrong with this code: > > $sth=$dbh->prepare("SELECT Contacts FROM Info WHERE Name=?); > > $s

RE: help please, patter matching problem

2002-01-12 Thread Roger Baklund
* Dan > Can someone tell me what's wrong with this code: > > $sth=$dbh->prepare("SELECT Contacts FROM Info WHERE Name=?); > > $sth->execute("%$sname%"); You should use the LIKE operator: Name LIKE "%roger%" http://www.mysql.com/doc/S/t/String_comparison_functions.html > -- Roger --

help please, patter matching problem

2002-01-12 Thread Dan
mysql and Perl Can someone tell me what's wrong with this code: $sth=$dbh->prepare("SELECT Contacts FROM Info WHERE Name=?); $sth->execute("%$sname%"); $dname = $sth->fetchrow_array; $names is supposed to be a substring. So if I want to search for a middle name or just a first name or even a