我存储的函数消失了,大概是在 RazorSQL 会话结束时
我使用 RazorSQL 的实时会话窗口来创建和编辑多个存储过程。
我已经断开与数据库的连接,然后重新连接,现在这些过程已经消失了。
想必我在这里搞砸了,但我使用的登录名有权创建这些过程,虽然我第一次仍然保持连接,但我实际上可以连接并执行存储过程,所以我知道它们是至少在那时。
为了使函数持久化,除了编写一个工作的“CREATE FUNCTION”块之外,我在 RazorSQL 中还需要做什么?
I was using RazorSQL's live session window to create and edit several stored procedures.
I've since disconnected from the database, and reconnected, and now those procedures have disappeared.
Presumably I'm screwing up, here, but I'm using a login which has permission to create these procedures and while I'm still connected the first time I can actually connect in and execute the stored procedures, so I know they're at least there at that point.
What more do I have to do in RazorSQL than write a working "CREATE FUNCTION" block in order to cause the function to become persistent?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Informix 中,几乎所有 SQL 语句(DDL 和 DML)都受事务影响(CREATE DATABASE、DROP DATABASE 和 RENAME DATABASE 除外)。
Informix 中有多种类型的数据库 - 当前目的的主要区别是“MODE ANSI”与“已记录”和“未记录”数据库之间的区别。
在我看来,您所看到的最可能的解释是:
In Informix, almost all SQL statements, both DDL and DML, are subject to transactions (the exceptions are CREATE DATABASE, DROP DATABASE and RENAME DATABASE).
There are several types of database in Informix - the key distinction for the current purpose is between 'MODE ANSI' and 'logged' and 'unlogged' databases.
It seems to me that the most likely explanation of what you saw is: