随笔分类 -  Informix

摘要:--某个表中的字段及字段类型代码SELECT c.colname, c.coltype,t.owner FROM syscolumns c, systables t WHERE c.tabid = t.tabid AND t.tabname = 'dm_plc_policy' --查看数据库临时表空 阅读全文
posted @ 2016-06-02 10:18 小四阿哥 阅读(857) 评论(0) 推荐(0)
摘要:union,union all的区别 阅读全文
posted @ 2015-12-01 11:05 小四阿哥 阅读(124) 评论(0) 推荐(0)
摘要:informix中有无dual表为提高IO效率,希望一次查询中多个子查询不同的不关联的多张表select(selectafromtable1where****),(selectbfromtable2where****),(selectcfromtable3where****)fromdual;可是貌... 阅读全文
posted @ 2015-05-21 10:55 小四阿哥 阅读(890) 评论(0) 推荐(0)
摘要:今天在园子里看到个group by 分组多列统计的例子,转走给大家分享一下:create table tests (year datetime year to year,type char(1),value int);alter table tests alter colomn year int;i... 阅读全文
posted @ 2015-04-17 15:34 小四阿哥 阅读(4962) 评论(0) 推荐(0)