在bcp上进行任务 [英] questing on bcp
本文介绍了在bcp上进行任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1。如何使用输入sql文件导出数据?
1. How to export data with an input sql file ?
目前使用
bcp" select ...... from ...。" queryout" output.csv" -c -T -t"?" -S服务器
bcp "select …… from …." queryout "output.csv" -c -T -t "?" -S server
可以做
bcp -i" file.sql" queryout" output.csv" -c -T -t"?" -s服务器,其中file.sql是查询?因为我的查询很长。
bcp -i "file.sql" queryout "output.csv" -c -T -t "?" -S server where file.sql is the query ? Because my query is very long.
2。如何将标题一起导出?
2. How to export the header together ?
推荐答案
参见
bcp Utility =>参数" -i input_file"
See bcp Utility => Parameter "-i input_file"
这篇关于在bcp上进行任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文