什么是sql server中的表变量 [英] What is table variable in sql server

查看:504
本文介绍了什么是sql server中的表变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

sql server中的表变量是什么

what is table variable in sql server

推荐答案

它是一个临时存储记录/结果的变量。这与临时表相同,但是在临时表的情况下,我们需要显式删除它。在表变量的情况下,当它超出范围时它会被下垂。



这是你可以获得更多信息的文章之一。谷歌搜索:)获取更多信息。



http://www.developerfusion.com/article/84397/table-variables-v-temporary-tables-in-sql-server/ [ ^ ]
Its a variable where you temporary store the records / result. This is same as temp table but in case of temp table we need to explicitly drop it. In case of table variable it gets droped when it goes out of scope.

This is one of the article where you could get more information. Do googling :) to get more information.

http://www.developerfusion.com/article/84397/table-variables-v-temporary-tables-in-sql-server/[^]


google [ ^ ]会让您更清楚地了解很多替代品/选项。



参见上面的线程ch结果:

SQL中的表变量 [ ^ ]

T-SQL中的表变量 [ ^ ]
A simple search on google[^] would make it more clear to you with lot of alternatives/ options.

See the threads from above search results:
Table variables in SQL[^]
Table Variables In T-SQL[^]


这篇关于什么是sql server中的表变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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