IBM DB2:如何更改视图的结构而不删除它并重新创建它?
IBM DB2:如何更改视图的结构而不删除它并重新创建它? ” 我在 DB2 IBM i-series 中有一个视图,我需要“更新”/更改它的“查询”。到目前为止,我知道的唯一方法是删除并再次构建它,但在这种情况下,我有基于此的另一种视图,如果我删除第一个视图,第二个视图将被删除到..
IBM DB2: how to change a view's structure without deleting it and create it again?
"
I have a view in DB2 IBM i-series and I would need to "update"/change it's "query". The only way I know so far is deleting and building it again but in this case I have another view based on this one and if I delete the first one, the second is deleted to..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您在 i5/OS V7.1 上运行,则可以使用
CREATE OR REPLACE VIEW
。如果没有,那么(不幸的是)您将不得不删除/重新创建视图(及其依赖对象)。
If you are running on i5/OS V7.1, then you can use
CREATE OR REPLACE VIEW
.If not, then (unfortunately) you will have to drop / recreate the view (and its dependent objects).
您是否正在寻找 改变视图语法?
Are you looking for the alter view syntax?
您必须查看哪些其他视图正在使用此视图
并且必须重新创建它们。
你可以使用这个命令:
DSPDBR
you would have to see which other views are using this view
and would have to recreate them.
you can use this command:
DSPDBR