ページの先頭行へ戻る
Symfoware Analytics Server V12.1.0 利用ガイド
FUJITSU Software

I.4.4 pgxa_export_from_table

機能

カラムナテーブルからCSV形式でデータを書き出します。

書式

pgxa_export_from_table(tablename,outputfile,condition)

引数

引数

データ型

意味

tablename

text

出力対象テーブル名(外部テーブル名)

outputfile

text

出力ファイル名(260Byte未満)

condition

text

出力条件(最大512Byte)

戻り値

戻り値

意味

TRUE

正常終了

FALSE

異常終了

実行例

WindowsWindowsの場合

> psql postgres
psql (9.2.8)
Type "help" for help.

postgres=# select pgxa_export_from_table('scm.tbl1', 'd:\data\output.csv', 'where col1>0 and col2=''abc''' );
 pgxa_export_from_table
------------------------
 t
(1 row)

SolarisLinuxLinuxおよびSolarisの場合

> psql postgres
psql (9.2.8)
Type "help" for help.

postgres=# select pgxa_export_from_table('scm.tbl1', '/data/output.csv', 'where col1>0 and col2=''abc''' );
 pgxa_export_from_table
------------------------
 t
(1 row)

説明