How to use mysqldump for a portion of a table?

后端 未结 7 748
自闭症患者
自闭症患者 2020-12-12 12:30

So I can export only a table like this:

mysqldump -u root -p db_name table_name > table_name.sql

Is there any way to export only a porti

7条回答
  •  青春惊慌失措
    2020-12-12 13:03

    The file dumped is different from the file you use SQL select. For the 2nd approach, you can not simply use: mysql database < table to dump the table into a database.

提交回复
热议问题