can anybody point me to where im going wrong here?
INSERT INTO bands_media
(bandid, mediatype, filename)
VALUES ((SELECT bandid, 1, pic FROM bands));
error:
SQL-query :
INSERT INTO bands_media( bandid, mediatype, filename )
VALUES (
(
SELECT bandid, 1, pic
FROM bands
)
)
MySQL said:
#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 bandid, 1, pic
FROM bands ) )' at line 5
thanks much!