DJ_Petrovich
Новичок
Подзапрос не работает. В чем замес?
select * from prod_mod where mod_prod_id in (select prod_id from products where prod_cat=222)
Ошибка такая:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select prod_id from products where prod_cat = 222 )
Причем на MySQL 4.1.8 прекрасно работает
а на 4.0.27-standard - НЕ работает
select * from prod_mod where mod_prod_id in (select prod_id from products where prod_cat=222)
Ошибка такая:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select prod_id from products where prod_cat = 222 )
Причем на MySQL 4.1.8 прекрасно работает
а на 4.0.27-standard - НЕ работает