Ekklipce
Новичок
Вложенный запрос : в чем ошибка ?
INSERT INTO offer( element, min_count, store_count, supplier, price, name, producer, upload )
VALUES (
(
SELECT element
FROM `offer`
WHERE name = 'SI4484EY-T1'
AND producer = 'VHY'
AND upload = '0'
), "1", "0", "1", "1", "1N5817-xxx", "ONS", "1"
)
SELECT element
FROM `offer`
WHERE name = 'SI4484EY-T1'
AND producer = 'VHY'
AND upload = '0' - работает, верхний без этого тоже
где ошибка ?
INSERT INTO offer( element, min_count, store_count, supplier, price, name, producer, upload )
VALUES (
(
SELECT element
FROM `offer`
WHERE name = 'SI4484EY-T1'
AND producer = 'VHY'
AND upload = '0'
), "1", "0", "1", "1", "1N5817-xxx", "ONS", "1"
)
SELECT element
FROM `offer`
WHERE name = 'SI4484EY-T1'
AND producer = 'VHY'
AND upload = '0' - работает, верхний без этого тоже
где ошибка ?