Is there a possibility to execute multiple CREATE TABLE within one mysql query?
Is there a possibility to execute multiple CREATE TABLE within one mysql query?
Share
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.
No. You must do them in multiple queries.
<incorrect>However, you can wrap the creation queries in a transaction to allow you to roll back the entire operation if something fails.</incorrect>UPDATE: Ok, as pilcrow points out, each create causes an implicit commit, so you can’t use transactions for this. You can, however, wrap the inserts (for a backup restore) in transactions.