Q:把一個lianxi表中的addr和email字段通過select into outfile命令形式輸出到test.txt文件中
我想在test.txt文件的內容顯示如下:
addr1,adb@126.com;
addd2,test@sina.com;
A:答案為:
select addr,email from lianxi to file test.txt
-
或者
select addr,email from lianxi to file test
就可以了,你可以試試
完全格式為:
select 字段名 from 表名 where 條件 to file 文件名(.txt/.doc等等) order by 字段名
本文出自:億恩科技【xuefeilisp.com】
服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]
|