DB2 表中的列描述 [英] Description of columns in a DB2 table

查看:17
本文介绍了DB2 表中的列描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何通过SQL知道表(DB2)中每一列的描述?

How can we know the description of every column in a table(DB2) through SQL?

我的数据库是 DB2.

My data base is DB2.

推荐答案

select 
  tabname,
  colname,
  typename,
  length,
  scale,
  default,
  nulls,
  identity,
  generated,
  remarks,
  keyseq 
from 
  syscat.columns 

这篇关于DB2 表中的列描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆