删除模式的内容,而无需删除模式
在db2中,有此admin_drop_schema
过程,用于删除特定的模式和其中包含的所有对象。
虽然它将所有内容都放在模式中,但不幸的是,它也丢弃了模式。
是否可以替代admin_drop_schema
过程,该过程只会删除模式的内容,而不是架构本身?
我问的原因是我们正在测试特定模式的脚本,该脚本将创建表,视图和触发器。我需要能够快速放下模式的内容,但不能删除模式本身,因为我没有特权掉落和重新创建模式,但是我可以在模式中执行任何操作。
In DB2, there is this ADMIN_DROP_SCHEMA
procedure which is used to drop a specific schema and all objects contained in it.
While it drops everything within the schema, it also unfortunately drops the schema.
Is there an alternative to ADMIN_DROP_SCHEMA
procedure which will only drop the contents of the schema but not the schema itself?
The reason I'm asking is we are testing a script on a particular schema which will create tables, views and triggers. I need to be able to drop the contents of the schema quickly but not the schema itself because I don't have privileges to drop and recreate the schema but I can do anything within the schema..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论