求助mssql语句转成mysql
with t as (select * from Category where CatId = @CatId union all select a.* from Category as a inner join t as b on a.ParentId = b.CatId) select * from Goods where CatId in (select CatId from t)
mysql似乎不支持with,是不是要用create写个临时表,请大神帮忙写一下,本人对php不熟悉