使用以下sqlcmd脚本:
- sqlcmd -S . -d MyDb -E -s,-W -Q "select account,rptmonth,thename from theTable"
- > c:\dataExport.csv
acctnum,facilname
——-,——–,———
ALLE04,201406,Allendale Community for Senior Living-LTC APPL02,Applewood Estates
ARBO02,Arbors Care Center
ARIS01,AristaCare at Cherry
Hill
. . .(139 rows affected)
我尝试使用parm -h-1,但是除了列标题和虚线.