简体   繁体   English

我使用联合创建了一个表。 有没有办法将它导出到 csv 文件中?

[英]I created a table using Union. Is there a way to export it into a csv file?

I am using MSSQL, and I generated a table by doing a union on 6 other tables.我正在使用 MSSQL,并通过对 6 个其他表进行联合来生成一个表。

I am trying to find a way to export the table into a CSV file that I just created.我正在尝试找到一种方法将表导出到我刚刚创建的 CSV 文件中。 How can I do so?我该怎么做?

Thank you!谢谢!

Welcome to StackOverflow, Considering it is not used for automation purpose.欢迎使用 StackOverflow,考虑到它不用于自动化目的。 You can execute your query, Then right click on result table in ssms, select option "save result as" and you'll get option to save as.csv file.您可以执行查询,然后右键单击 ssms 中的结果表,select 选项“将结果另存为”,您将获得另存为.csv 文件的选项。

Mark this as correct if it works out for you.如果它适合您,请将其标记为正确。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM