bcp 导出数据到xls

BCP "select [Key],[Date] ,[Importer] ,[Exporter] ,[HsCode
] ,[Country] ,[Product] ,[Quantity] ,[Weight] ,[value] ,[IndianPortName] ,[UQC]
,[UnitValueInINR] ,[TotalValueInINR] ,[CurrencyRate] ,[UnitValueInUSD] ,[ImpAddr
essLine1] ,[ImpAddressLine2] ,[ImpAddressCity] ,[ImpAddressPINCode] ,[ImpPhoneNu
mber] ,[ImpEmail] ,[ContactPerson] ,[ContactAddressLine1] ,[ContactAddressLine2]
 ,[ContactAddressCity] ,[ContactAddressPINCode] ,[ContactPhoneEmail] ,[BENo] ,[D
utyAmount] ,[InDateTime] from [india-bill-news].[dbo].[T_MD_IMP_LIST_NEWS]" quer
yout d:\data\bcp\india-v2.xls -c -T



参考

http://www.cnblogs.com/zerocc/p/3225723.html

你可能感兴趣的:(bcp 导出数据到xls)