Oracle 中查询字段详细信息的sql 语句,包含了表名,字段名,类型,长度,是否为空,列序号和字段的备注信息。

 SELECT USER_TAB_COLS.TABLE_NAME as 表名,
    USER_TAB_COLS.COLUMN_NAME 
as 列名 , 
Oracle 查询字段详细信息USER_TAB_COLS.DATA_TYPE 
as 数据类型,
    USER_TAB_COLS.DATA_LENGTH 
as 长度,
    USER_TAB_COLS.NULLABLE 
as 是否为空,
Oracle 查询字段详细信息USER_TAB_COLS.COLUMN_ID 
as 列序号,
    user_col_comments.comments 
as 备注 
Oracle 查询字段详细信息FROM USER_TAB_COLS 
inner join user_col_comments on
 user_col_comments.TABLE_NAME
=USER_TAB_COLS.TABLE_NAME 
and user_col_comments.COLUMN_NAME
=USER_TAB_COLS.COLUMN_NAME 
Oracle 查询字段详细信息where  USER_TAB_COLS.Table_Name
='表名' 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-08
  • 2022-12-23
  • 2021-12-09
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
相关资源
相似解决方案