|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: (OT) MySQL select Questionby dbwiz (Curate) |
| on Jul 27, 2003 at 01:35 UTC ( [id://278200]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Subselects are already available in MySQL version 4.1, which is still in alpha, though. In this particular case, the subselect could be replaced by a join. Assuming that (from what I see in your example) table1.category is a foreign key for table2.id, then you can rewrite the query as follows
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||