请教大家:linux命令行下使用mysql,如何导出查询的记录集?
解决方案 »
- MYSQL 建表外键问题。。。。
- mysql 从远程数据库中拷贝到本地 向大侠求教
- 利用mysql查询语句完成分页
- MYSQL字段值合并 同表同字段不同值合并(有一字段值相同)
- 请教关于int类型长度问题
- mysql的亂碼,問題,在建表中解決,但建表中報的錯,怎麼解決,請高手一解
- 菜鸟出100分,这里有人会用Berkeley DB 这个数据库工具吗?教教我行吗?
- mysql jdbc 创建触发器的问题
- 关于多个like如何使用
- 提示删除成功,也查询不到,但是重新登录后,删除的数据依然存在
- group by 后如何知道每组的个数。
- 使用query()循环插入出现MySQL server has gone away错误
-> ;
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '> temp.txt' at line 1
-> ;
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '>> temp0524.txt' at line 1
这样
select * from tablename into outfile "/home/mydir/test.txt"