I have a requirement in which I have to take mysql dump of just one column of a table. Since that table has too many columns, I don't want to take dump of the full table. I have to get this dump of the table from one server to another. Any idea how I can do this?
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
If you would like to take mysql dump including the schema, it can be done by following the below steps:
create a temp table:
duplicating data into temp_table:
dropping unnecessary fields:
post this, you could take a mysqldump by running:
If the intention is to take a data dump(without the schema), you can run the below command:
copy temp.sql to target server, then on target server
Select the column into a file ?