免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2596 | 回复: 5

如何在informix的存储过程中输出一串包含当前时间的字符串 [复制链接]

论坛徽章:
0
发表于 2005-12-27 10:14 |显示全部楼层
如何在informix的存储过程中输出一串包含当前时间的字符串
就像oracle中的dbms_output("你好+sysdate")功能一样,有什么好办法么?

论坛徽章:
0
发表于 2005-12-27 10:18 |显示全部楼层
from informix FAQ
4.8.13 Why does CURRENT always return the same value in SPL?
On 1st Feb 1999 kagel@bloomberg.net (Art S. Kagel) wrote:-

It is a requirement of ANSI SQL that a stored procedure return a constant value for CURRENT throughout its lifetime. This is the way that Informix implemented CURRENT in SPL to meet the standard.

On 9th Mar 2001 Leonids.Voroncovs@dati.lv (Leonid Belov) wrote:-

SELECT DBINFO( 'UTC_TO_DATETIME', sh_curtime ) FROM sysmaster:sysshmvals;

论坛徽章:
0
发表于 2005-12-27 10:55 |显示全部楼层
阿!谢谢!真好用啊!请问这个faq是从哪里找的?

论坛徽章:
0
发表于 2005-12-27 10:56 |显示全部楼层
还有怎么实现在存储过程中随意输出一个字符串?

论坛徽章:
0
发表于 2005-12-27 10:59 |显示全部楼层

论坛徽章:
0
发表于 2005-12-27 11:04 |显示全部楼层
原帖由 redred5 于 2005-12-27 10:56 发表
还有怎么实现在存储过程中随意输出一个字符串?


trace "any string ";
行不?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP