I know this shouldn't phaze me but it is. Big time.
I have a field `junk`, which contains an array I wish to use later e.g 2,3,4,5
I want to use this as such:
select * from mytable where id in (select junk from anothertable where somethingelse='stuff');
I only ever get 1 row returned which is the first number in `junk` (2 in this case). Why can't I get the rest, there are no group by's.
It works if I manually set the IN(), or is I use group_concat(blah).
I'd find it much easier to just preset the 10 entries with an array list in one field rather than creating 90 odd rows of 1 entry each.
chairs,
Kev
______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
I have a field `junk`, which contains an array I wish to use later e.g 2,3,4,5
I want to use this as such:
select * from mytable where id in (select junk from anothertable where somethingelse='stuff');
I only ever get 1 row returned which is the first number in `junk` (2 in this case). Why can't I get the rest, there are no group by's.
It works if I manually set the IN(), or is I use group_concat(blah).
I'd find it much easier to just preset the 10 entries with an array list in one field rather than creating 90 odd rows of 1 entry each.
chairs,
Kev
______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.