MySQL Forums
Forum List  »  PHP

Insert data from one table to another
Posted by: Douglas Moxley
Date: July 26, 2017 07:31PM

Hi folks,

What is wrong with the below request? All of the field names are correct but nothing is being inserted into the table value.

"INSERT INTO table1 (index1) SELECT index2 FROM table2 WHERE username = admin";

Thank you,
Doug

Options: ReplyQuote


Subject
Written By
Posted
Insert data from one table to another
July 26, 2017 07:31PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.