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
Is mysql better than oracle?
What is the limit of mysql database?
What are the drivers in MySQL?
What is the difference between float and double?
Why mongodb is faster than mysql?
What is the use of concat() in mysql?
How do I insert an image into mysql workbench?
How many concurrent queries can mysql handle?
How do you determine the location of mysql data directory?
How do I download a mysql community server?
Is mysqli deprecated?
What is a session in mysql?
Is mysql server free?
What is the use of procedure in mysql?
Is mysql a relational database?