查询orcal数据类型或列名

来源:互联网 发布:国内医学论文数据造假 编辑:程序博客网 时间:2024/06/08 07:31

sybase

SELECT  DISTINCT case when syslength=0 then coltype+'('+string(length)+')' else coltype+'('+string(length)+','+string(syslength)+')'end  as 类型  FROM  columns where tname='tablename'


查询数据类型

orcal

SELECT *

  FROM user_tab_columns

 WHERE table_name = '大写表名'


select a.name as [column],b.name as type from syscolumns a,systypes b where a.id=object_id('表名') and a.xtype=b.xtype and a.name='列名'


SELECT * FROM "DBA"."pbcatcol" where pbc_tnam='tablename' --查询中文名字系统表



0 0
原创粉丝点击