You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/t-sql/language-elements/variables-transact-sql.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,9 @@ A Transact-SQL local variable is an object that can hold a single data value of
26
26
> [!NOTE]
27
27
> The names of some Transact-SQL system functions begin with two *at* signs (\@\@). Although in earlier versions of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], the \@\@functions are referred to as global variables, they are not variables and do not have the same behaviors as variables. The \@\@functions are system functions, and their syntax usage follows the rules for functions.
28
28
29
+
> [!NOTE]
30
+
> Variables can not be used in views.
31
+
29
32
The following script creates a small test table and populates it with 26 rows. The script uses a variable to do three things:
30
33
31
34
* Control how many rows are inserted by controlling how many times the loop is executed.
0 commit comments