mysql(version<4.0)不支持子查询, 请问怎么改写SQL才能达到效果?(50分)

P

paofu

Unregistered / Unconfirmed
GUEST, unregistred user!
mysql(version<4.0)不支持子查询, 请问怎么改写SQL才能达到效果?
select p.*
from products p
left join products_to_categories p2c on p2c.products_id = p.products_id
left join categories c on c.categories_id = p2c.categories_id
where c.categories_id in
(
select categories_id
from categories c
where c.parent_id = 24
)
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
715
import
I
I
回复
0
查看
814
import
I
S
回复
0
查看
818
SUNSTONE的Delphi笔记
S
顶部