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
What is difference between schema and table?
How do I truncate all tables in mysql?
What is latest version of mysql?
Can we write pl sql mysql?
how you will Create a database on the mysql server with unix shell.
How do I disable mysql?
What is mysql url?
What is a trigger? How you can create a trigger in mysql?
how you will show all records not containing the name "sonia" and the phone number '9876543210' order by the phone_number field.
How do I connect to a mysql database?
How can I change database in mysql?
What could be the reason that the mysql statement 'select avg (salary) from emp' generates an inaccurate output?
What are the difference between mongodb and mysql?
What is the difference between sql and mysql and oracle?
What is mysql root?