ユーザ用ツール

サイト用ツール


ibm:db2:get_table_list

文書の過去の版を表示しています。


表の列名などを取得する

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
;
ibm/db2/get_table_list.1679277610.txt.gz · 最終更新: 2023/03/20 11:00 by mikoto