
SELECT @local_variable (Transact-SQL) - SQL Server
Nov 18, 2025 · SELECT @ local_variable is typically used to return a single value into the variable. However, when expression is the name of a column, it can return multiple values.
about_PSItem - PowerShell | Microsoft Learn
PowerShell includes the $PSItem variable and its alias, $_, as automatic variables in scriptblocks that process the current object, such as in the pipeline. This article uses $PSItem in the examples, but …
about_Variables - PowerShell | Microsoft Learn
Working with variables To create a new variable, use an assignment statement to assign a value to the variable. You don't have to declare the variable before using it. The default value of all variables is …
set (environment variable) - learn.microsoft.com
Sep 6, 2023 · If you specify values for <variable> and <string>, the specified <variable> value is added to the environment and <string> is associated with that variable. If the variable already exists in the …
Variables (Transact-SQL) - SQL Server | Microsoft Learn
Nov 18, 2025 · The scope of a variable is the range of Transact-SQL statements that can reference the variable. The scope of a variable lasts from the point it's declared until the end of the batch or stored …
Declaring variables (VBA) | Microsoft Learn
Jul 31, 2024 · You can implicitly declare a variable in Visual Basic simply by using it in an assignment statement. All variables that are implicitly declared are of type Variant.
table (Transact-SQL) - SQL Server | Microsoft Learn
Nov 18, 2025 · This variable can be used in the function, stored procedure, or batch in which it's declared. Within its scope, a table variable can be used like a regular table.
New-Variable (Microsoft.PowerShell.Utility) - PowerShell
The New-Variable cmdlet creates a new variable in PowerShell. You can assign a value to the variable while creating it or assign or change the value after it is created.
Define variables - Azure Pipelines | Microsoft Learn
Oct 1, 2025 · User-defined variables can be set as read-only. There are naming restrictions for variables (example: you can't use secret at the start of a variable name). You can use a variable group to …
Public statement (VBA) | Microsoft Learn
Mar 30, 2022 · The Public statement can't be used in a class module to declare a fixed-length string variable. Use the Public statement to declare the data type of a variable. For example, the following …