我使用Aspen InfoPlus.21每天在设定的时间运行来自IP21数据的查询。现在我想使用python每天分析这些数据。如何编辑我的SQL查询以写入csv文件而不仅仅是查询。
发布于 2017-11-20 14:07:56
一种简单的方法:
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';https://stackoverflow.com/questions/46076036
复制相似问题