我们如何在事务中与其他查询一起创建 VIEW?
我有一个查询生成器,我需要检查视图是否存在并重新创建它。另外我想在创建视图之前创建一个表。我怎样才能在事务中完成这些工作。
注意:create view 必须是批处理中的第一个语句。
I have a query generator, I need to check existence of a view and recreate it. In addition I want to create a table before of view creation. How can I do these works in a transaction.
note: create view must be the first statement in a batch.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 GO 分隔您的语句
Separate your statements with GO