在视图中包含临时/变量表有哪些问题?

发布于 2024-07-13 10:07:32 字数 142 浏览 8 评论 0原文

我的一个朋友问我是否知道为什么他不应该在 SQL-Server 2000 的视图中包含临时表或变量表。我只能认为每次访问视图时都会创建一个新表,但我想知道是还有其他问题。

谢谢,

编辑:这是不可能的

a friend of me is asking if i know any reasons why he should not included Temporal or variables tables inside a View in SQL-Server 2000. i could only think that a new table will be created everytime the view is accessed but i am wondering is there are any other concerns.

Thanks,

EDIT: This is not Possible

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云朵有点甜 2024-07-20 10:07:32

呵呵,你也能做到吗?

服务器:消息 4508,级别 16,状态 1,过程测试,第 2 行
临时表上不允许使用视图或函数。 以“#”开头的表名称表示临时表。

Huh, can you even do that?

Server: Msg 4508, Level 16, State 1, Procedure Test, Line 2
Views or functions are not allowed on temporary tables. Table names that begin with '#' denote temporary tables.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文