How will you export tables as an xml file in mysql?



How will you export tables as an xml file in mysql?..

Answer / Rochak Mehrotra

To export tables as XML files in MySQL, use the `mysqldump` command-line tool with the `--xml` option. Here's an example:

```sh
mysqldump -u [username] -p[password] --xml=[table_name].xml [database_name] [table_name]
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

How do you restart mysql?

1 Answers  


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?

1 Answers  


What is the difference between timestamp and datetime in mysql?

1 Answers  


What are the functions in mysql?

1 Answers  


What is the difference between mysql_fetch_array and mysql_fetch_object?

4 Answers   CTS,


Is mysql a good database?

1 Answers  


How do I restore a mysql database dump file in linux?

1 Answers  


What is ibdata1?

1 Answers  


How do I run mysql on a mac?

1 Answers  


What is the difference between mysql and sql?

1 Answers  


how do i list constraints in my database by using sql server2000?

1 Answers  


What is the difference between the DELETE TABLE and TRUNCATE TABLE commands in MySQL?

1 Answers  


Categories