I want to transfer 50 rows from table1 to table 2, how should I do this?
Suggested code:
INSERT INTO table2 SELECT * FROM table1
WHERE uid IN ('23','34','345','567','3242','34322','2') DELETE;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Write 2 statements. If you usee InnoDB, put them inside a transaction: