mysql导出某张表的部分数据

网友投稿 633 2022-10-09

mysql导出某张表的部分数据

mysql导出某张表的部分数据

1、使用into outfile '保存到操作系统的外部文件路径'mysql -uroot -p123456 -hhostname -P3306select column_name_list from table_name where condition into outfile '/home/glc/tmp/yes.csv'; 2、使用 mysql -hXXX -e "select column_name_list from table_name where condition " > no.csv 3、使用 mysql -hXXX -ss < my.sql > no.csv &其中my.sql中内容为:use database_glc;select

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:微信小程序之MaterialDesign--input组件(微信小程序input组件属性)
下一篇:Westore- 微信小程序解决方案(westoreast,homeisbest)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~