码迷,mamicode.com
首页 > 其他好文 > 详细

informix系统表

时间:2016-06-02 11:13:40      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:

--某个表中的字段及字段类型代码
SELECT c.colname, c.coltype,t.owner FROM syscolumns c, systables t WHERE c.tabid = t.tabid AND t.tabname = ‘dm_plc_policy‘

--查看数据库临时表空间使用情况
select pagesize,chksize,nfree from sysmaster:syschunks where dbsnum in(select dbsnum from sysmaster:sysdbspaces where name like ‘tmp%‘)

---查看存储过程执行时间
select task_code,FN_DEV_DATETIME(task_lendtime,task_lstarttime,3) as task_exetime from task_def where task_valid=‘1‘ order by 2 desc

---查看表大小
select trim(t1.tabname) tabname , trunc ( sum ( t2.pe_size * 16384 / ( 1024 * 1024 ) ),2 ) total_size from sysmaster:systabnames t1 , sysmaster:sysptnext t2 , systables t
where t1.partnum = t2.pe_partnum and t1.tabname = t.tabname and t.tabname=‘dm_plc_policy‘ group by 1;

informix系统表

标签:

原文地址:http://www.cnblogs.com/sarahs/p/5552078.html

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