码迷,mamicode.com
首页 > 数据库 > 详细

oracle怎么查看表字段的类型

时间:2015-12-23 02:04:35      阅读:866      评论:0      收藏:0      [点我收藏+]

标签:

  



select column_name,data_type,DATA_LENGTH From all_tab_columns 
where table_name=upper(‘表名‘) AND owner=upper(‘数据库登录用户名‘)

select column_name,data_type,DATA_LENGTH From all_tab_columns 
where table_name=upper(‘Mid_Payinfo‘) AND owner=upper(‘cgtest‘)

  技术分享

 

create table Mid_Payinfo(
  GUID  VARCHAR2(100),
  DkAmount NUMBER(22),
  CreateBy Varchar(40),
  CreateDate Date,
  ApproveDate Date,
  ApprovedBy Varchar2(40),
  SFProviderCode varchar2(80),
  SFProviderName varchar2(200),
  PayDate Date,
  Billstate number22),
  BillPk varchar2(100)
)

 

oracle怎么查看表字段的类型

标签:

原文地址:http://www.cnblogs.com/zzzzw/p/5068672.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!