Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个来自 IP21 数据的查询,我每天使用 Aspen InfoPlus.21 在设定的时间运行。我现在想每天使用 python 分析这些数据。如何编辑我的 SQL 查询以编写 csv 文件而不仅仅是查询。
一种简单的方法:
set output = 'C:\test.csv'; --Note this is relative to the IP21 server, not the client machine for (select * from myTable) do write column1 || ',' || column2 || ',' || column3; end set output = default; write 'All done';