When I try to execute following query:
SELECT id_subscriber INTO newsletter_to_send FROM subscribers
I get an error:
#1327 - Undeclared variable: newsletter_to_send
What is wrong with that query ?
INSERT ... SELECT
http://dev.mysql.com/doc/refman/5.1/en/insert-select.html
INSERT INTO newsletter_to_send SELECT id_subscriber FROM subscribers
PS: are you sure you don't need in WHERE
clause?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With