Informix system table

Source: Internet
Author: User
Tags informix

--field and field type codes in a table
SELECT C.colname, C.coltype,t.owner from syscolumns C, systables t WHERE c.tabid = t.tabid and t.tabname = ' Dm_plc_policy '

--View Database temp table space usage
Select Pagesize,chksize,nfree from Sysmaster:syschunks where Dbsnum in (select Dbsnum from sysmaster:sysdbspaces where Nam E like ' tmp% ')

---to view the execution time of a stored procedure
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

---view table size
Select Trim (t1.tabname) tabname, trunc (SUM (t2.pe_size * 16384/(1024x768)), 2) Total_size from Sysmaster:systa Bnames 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 system table

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.