- Sep 30, 2001
- 12,684
- 2
- 81
INSERT INTO `dividends` ( `symbol_id` ) VALUES(SELECT `id` FROM `symbols` WHERE `name` = 'ADBE');
Im running mysql 4.1 so sub queries are allowed....
I'm pretty sure it's a glaringly obvious mistake... i need sleep
#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 `id` FROM `symbols` WHERE `name` = 'ADBE')' at line 1
That's what mysql spits out at me...
Im running mysql 4.1 so sub queries are allowed....
I'm pretty sure it's a glaringly obvious mistake... i need sleep
#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 `id` FROM `symbols` WHERE `name` = 'ADBE')' at line 1
That's what mysql spits out at me...