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 free download?
What is the role of a limit in a mysql query?
What ascii 31?
Do I need python for mysql?
Why do we use group by and order by function in mysql?
Restore database (or database table) from backup.
Can you tell which of the following where clauses is faster?
What does do in mysql?
What is the use of i-am-a-dummy flag in mysql?
How show all tables in mysql query?
Why is mysql popular?
What is the difference between procedure and function in mysql?
Which mysql function is used to concatenate string?
What are programming functions?
I want to find out all databases starting with ‘test’, I have access to?