====== 表の列名などを取得する ====== あるスキーマ''schema_name''の表とその列名およびデータ型を取得し、それをCSVで出力する方法。 export to colmn_defs.csv of del select substr(tabname,1,60) as tabname, substr(colname,1,40) as colname, substr(typeschema,1,10) as typeschema, substr(typename,1,20) as typename, length, scale, nulls from syscat.columns where tabschema='schema_name' order by tabname, colno ;