RE: FIND_IN_SET question

2006-11-27 Thread Jerry Schwartz
Is this one of those places where a HAVING clause is needed? ... HAVING YESNO = 0 Regards, Jerry Schwartz Global Information Incorporated 195 Farmington Ave. Farmington, CT 06032 860.674.8796 / FAX: 860.674.8341 > -Original Message- > From: Lars Schwarz [mailto:[EMAIL PROTECTED] > Sen

Re: FIND_IN_SET question

2006-11-26 Thread Visolve DB Team
Hi, Hope, a string constant can be searched against a column; Most of the string function including find_in_set, allows us to display only the table values and not the string constants passed. Try it with 2 tables; or some userdefined functions. Thanks ViSolve DB Team. - Original Message

Re: FIND_IN_SET index problem

2002-07-27 Thread Benjamin Pflugmann
Hi. On Thu 2002-07-25 at 10:49:47 -0500, [EMAIL PROTECTED] wrote: > Hi, I have a problem where the index for a SET column does not get used > once I link in another table. > > The output to explain: > > mysql> explain select count(*) from NS_articles where > find_in_set('approved', artFlags)

Re: find_in_set )>0;

2001-12-13 Thread Benjamin Pflugmann
Hi. On Thu, Dec 13, 2001 at 10:50:30AM +, [EMAIL PROTECTED] wrote: > Hi > > I'm using the partial MySQL query: > > FIND_IN_SET('Specific Locations',res_places)>0; AND > FIND_IN_SET('Wales',res_places_sl)>0; > > And I was just wondering why use the ">0;". Why are they needed? What does >

Re: find_in_set syntax

2001-12-12 Thread Wiliam Stephens
At 17:40 11/12/01, you wrote: >Can you provide your table description? > >You have two set colums? One called res_skills and one called >res_skills_ma ? Yeah, Both are SET columns. Wil - Before posting, please check: http:/

Re: find_in_set syntax

2001-12-12 Thread Etienne Marcotte
mysql> create table gd_records( -> id int unsigned auto_increment, -> res_skills set("skills1","skills2","skills3","skills4","skills5","skills6"), -> res_skills_ma set("skills_ma1","skills_ma2","skills_ma3","skills_ma4","skills_ma5","skills_ma6"), -> primary key(id)); Query OK, 0 r

Re: find_in_set syntax

2001-12-11 Thread Etienne Marcotte
Can you provide your table description? You have two set colums? One called res_skills and one called res_skills_ma ? Etienne Wiliam Stephens wrote: > > Hi > > Can anyone tell me what is wrong with the MySQL FIND_IN_SET function? Well, > I'm using the following: > > ELECT * FROM gd_

Re: Re: find_in_set syntax

2001-12-11 Thread Wiliam Stephens
At 17:23 11/12/01, you wrote: >Your message cannot be posted because it appears to be either spam or >simply off topic to our filter. To bypass the filter you must include >one of the following words in your message: > >database,sql,query,table > >If you just reply to this message, and include the

Re: FIND_IN_SET

2001-12-10 Thread Wiliam Stephens
Hi I've got the following SQL statement for a MySQL database: SELECT * FROM gd_records WHERE FIND_IN_SET('$value',$field) What I want to know is how do I replace $value with a number of the position of the SET field? Ugh, I'll try and explain this more clearly. I've got the following