I have a quite difficult problem and I need help!!!!
I have a table and I have to insert a few hundred rows with these columns:
Email
When
What
I could make when and what with VALUES like
INSERT INTO emaillog(when, what)
VALUES (050712,P:\db\RAM Price List 070512.zip)
This is okay. The problem is with the emails. Those come from a query, I have a few thousand. So the new rows should look like this:
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
...
I really don't know how to do that...
I tried...
INSERT INTO emaillog(email, when, what)
VALUES (
(SELECT email FROM ram_070515query), 050712, P:\db\RAM Price List 070512.zip)...
but it didn't work...
PLEASE HELP ME, I don't want to type in hundreds of rows!!!!
I have a table and I have to insert a few hundred rows with these columns:
When
What
I could make when and what with VALUES like
INSERT INTO emaillog(when, what)
VALUES (050712,P:\db\RAM Price List 070512.zip)
This is okay. The problem is with the emails. Those come from a query, I have a few thousand. So the new rows should look like this:
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
[email protected] 050712 P:\db\RAM Price List 070512.zip
...
I really don't know how to do that...
I tried...
INSERT INTO emaillog(email, when, what)
VALUES (
(SELECT email FROM ram_070515query), 050712, P:\db\RAM Price List 070512.zip)...
but it didn't work...
PLEASE HELP ME, I don't want to type in hundreds of rows!!!!