sql全局变量和局部变量
时间: 2023-09-11 09:13:00 浏览: 129
SQL中局部变量全局变量详解.doc
全局变量和局部变量都是SQL Server中使用的变量类型。全局变量是SQL Server系统内部使用的变量,其作用范围不仅限于某个程序,任何程序都可以随时调用。全局变量通常用于存储SQL Server的配置设定值和统计数据,用户可以在程序中使用全局变量来测试系统的设定值或者执行Transact-SQL命令后的状态值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [SQLServer中的全局变量](https://blog.csdn.net/weixin_34249367/article/details/93896343)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [SQL研习录(31)——SQL变量详解](https://blog.csdn.net/WXKKang/article/details/103954376)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [SQL Server 变量](https://blog.csdn.net/weixin_43888054/article/details/127227813)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文