T-SQL 宣告與指定變數的用法 Posted on 2023-04-16 Edited on 2023-11-24 In T-SQL Views: Disqus: 以下小小範例說明了如何宣告變數、變數初始化、設定值的用法 1234DECLARE @Name nvarchar(100), @Age int = 30SET @Name = 'Bob'select @Name as Name, @Age as Age Name Age Bob 30