SQL Server 表:@、# 和 ## 之间有什么区别? [英] SQL Server tables: what is the difference between @, # and ##?

查看:40
本文介绍了SQL Server 表:@、# 和 ## 之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SQL Server中,@表、#表和##表有什么区别?

In SQL Server, what is the difference between a @ table, a # table and a ## table?

推荐答案

#table 指的是一个本地(只有创建它的用户可见)临时表.

#table refers to a local (visible to only the user who created it) temporary table.

##table 指的是一个全局(对所有用户可见)临时表.

##table refers to a global (visible to all users) temporary table.

@variableName 指的是可以根据其类型保存值的变量.

@variableName refers to a variable which can hold values depending on its type.

这篇关于SQL Server 表:@、# 和 ## 之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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