为什么我们不能使用语法(drop table @table)删除表变量(@table)? [英] Why can't we drop table variable (@table) using syntax (drop table @table)?

查看:407
本文介绍了为什么我们不能使用语法(drop table @table)删除表变量(@table)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道@table会自动丢弃。我们不用担心。但我想要理由,为什么我们不能明确地删除表变量?



我尝试过的事情:



我在谷歌搜索但找不到合适的答案。

I know that @table drops automatically. We need not worry about it. But I want reason, why can't we drop table variable explicitly?

What I have tried:

I have searched in Google but didn't find appropriate answer.

推荐答案

如评论中所述,它是一个变量,不能掉线。它不存储在同一个地方。简单的答案是因为它是一个变量。
As mentioned in the comments, it is a variable and cannot be dropped. It is not stored in the same place. The simple answer is "because it is a variable."


这篇关于为什么我们不能使用语法(drop table @table)删除表变量(@table)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆