johnmerlino
Registered User.
- Local time
- Today, 13:14
- Joined
- Oct 14, 2010
- Messages
- 81
I get the above error with this query:
INSERT INTO mailers ( contacts_first_filter_id, mailer_states_id, created_at )
VALUES (SELECT update_mailer_step_two.id
FROM update_mailer_step_two, 1, Now());
I'm not only trying to pull data from another table and insert it into one, but I'm also trying to give some default values for other fields that belong to the same record as the one we are pulling in.
Thanks for response.
INSERT INTO mailers ( contacts_first_filter_id, mailer_states_id, created_at )
VALUES (SELECT update_mailer_step_two.id
FROM update_mailer_step_two, 1, Now());
I'm not only trying to pull data from another table and insert it into one, but I'm also trying to give some default values for other fields that belong to the same record as the one we are pulling in.
Thanks for response.