MySQL Forums
Forum List  »  PHP

Re: Insert data from one table to another
Posted by: Rohan Singh
Date: July 27, 2017 10:43PM

INSERT INTO table1 (index1) SELECT index2 FROM table2 WHERE username = 'admin';
Please keep your user name into the single inverted comma and check the data type which you select when you created your database.

Options: ReplyQuote


Subject
Written By
Posted
Re: Insert data from one table to another
July 27, 2017 10:43PM


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.