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
using primary can we relate two table, with out foreign key?
What is limit in mysql?
What is the data type for file in mysql?
How MySQL Optimizes DISTINCT?
Is null in mysql?
What is procedure in mysql?
How many tables we can create in mysql database?
what is the procedure to configure the application of mysql?
How to Join tables on common columns.
What are the non-standard sql commands supported by 'mysql'?
How to dump a table to a file with 'mysqldump'?
Consider you have a composite index of three columns. Now, you have to provide the value of two columns in the where clause of a select query. Do you think index can be used for the operation?
How do I enable mysqli extension?
How to define numeric 9(3) in db2 table without decimal point??
What is mysqli_free_result?