Answer Posted / nivedita
select INTO statement id used to take a back of the table.
syntax
select coloum_name(s) INTO NewTable(in external database)
from source table;
example: select * into person_backup from persons;
------------
another way is to take a dump
mysqldump -h hostname -u username -p password database >
backupdtabase.sql
o [username] - this is your database username
o [password] - this is the password for your database
o [databasename] - the name of your database
o [backupfile.sql] - the file to which the backup
should be written.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Where is the mysql database stored?
What is append query?
What are enums used for in mysql?
What can I do with mysql?
What storage engines are used in MySQL?
How do I setup mysql?
What is key in mysql?
What are the functions used to encrypt and decrypt the data present in mysql?
Why do we use mysql?
What are the critical issues you have resolved in your company
What is unsigned int in mysql?
What are date and time intervals?
Is mariadb faster than mysql?
Why do we use preparedstatement?
How to store values to array from mysql database in php?