读书人

informix中有无dual表,该如何解决

发布时间: 2012-12-29 10:28:09 作者: rapoo

informix中有无dual表
为提高IO效率

希望一次查询中 多个子查询 不同的不关联的多张表

select
(select a from table1 where ****),
(select b from table2 where ****),
(select c from table3 where ****)
from dual;

可是貌似informix中没有dual表!

在网上搜索了一下
select
(select a from table1 where ****),
(select b from table2 where ****),
(select c from table3 where ****)
from sysmaster:sysshmvals;

这样可以实现

但是 还有别的方法吗
另:

sysmaster:sysshmvals 这个代表什么意思啊!!????
需要什么权限才能用啊!????

[解决办法]



from systables where tid =1


[解决办法]
1、你可以通过以下SQL命令获得精确的最近一次数据库启动时间:
select dbinfo("utc_to_datetime", sh_pfclrtime) from sysmaster:sysshmvals
sysshmvals表记录数据库最近一次启动的信息!

2、dual表找不到!

读书人网 >Informix

热点推荐