Re: AW: AW: find in list

2006-08-17 Thread Michael Stassen
Charlie Schaubmair wrote: Hello Michael, thx, I know normalisation. BUT normalisation isn't always the best (fastest) way to store, or select the datas, this is why I don't use it most time. Often I'm testing my projects with normalisation and without and my last very big problem with big selec

AW: AW: find in list

2006-08-16 Thread Charlie Schaubmair
ts is very fast without normalisation and with normalisation it was very slow. br Charlie > -Ursprüngliche Nachricht- > Von: Michael Stassen [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 17. August 2006 05:00 > An: mysql@lists.mysql.com > Cc: Mike van Hoof; Charlie Scha

Re: AW: find in list

2006-08-16 Thread Michael Stassen
Charlie Schaubmair wrote: > Hello, > > I want to do a query where I only gt the results by a numeric value: > > select * from MyTable where 1 IN someFieldInMyTable > I know this query doesn't work, but maybe anyone knows what I mean. > > 1 can be a value betwenn 1 and 23 > someFieldInMyTable is n

Re: AW: find in list

2006-08-16 Thread Mike van Hoof
Sorry, query was wrong... has to be: SELECT *, CONCAT(',',someFieldInMyTable,',') as wherefield FROM MyTable WHERE wherefield LIKE '%,1,%' Mike van Hoof schreef: Hey Charlie, maybe there is, but i don't know why... because when you do a like query it also finds the 21 when you do a like on

Re: AW: find in list

2006-08-16 Thread Mike van Hoof
Hey Charlie, maybe there is, but i don't know why... because when you do a like query it also finds the 21 when you do a like on the 1. what you maybe can do (not tested) is: SELECT *, CONCAT(',',someFieldInMyTable,',') as wherefield FROM MyTable WHERE wherefield='%,1,%' Now your someFieldIn