【发布时间】:2016-04-21 04:30:38
【问题描述】:
我们使用的是 postgresql 8/psql 8.4 版。我正在查询 information_schema.columns 的列名,并想生成一个文本文件/输出文件,所以:
UNLOAD ('select
col1,
col2,
col3,
col4,
col5)
to more text here
或
UNLOAD ( 'select col1,col2,col3,col4,col5) to more text here
所以,我基本上希望输出 colname 后跟 "," - colname,
这可能吗?感谢您的帮助。
【问题讨论】:
标签: postgresql plpgsql psql