\copy 表名 to 路径 with csv 比如: \copy dataset to /home/backup/dataset.csv with csv \copy dataset to /home/backup/dataset.csv with csv header 带字段名 导入CSV COPY mytable FROM '/myfile.csv' WITH CSV HEADER postgres=# COPY vender(sid,vender_id,vender_nam…
.使用into outfile '保存到操作系统的外部文件路径' mysql -uroot -p123456 -hhostname -P3306 select column_name_list from table_name where condition into outfile '/home/glc/tmp/yes.csv'; .使用 mysql -hXXX -e "select column_name_list from table_name where condition "…