Collections:
DECLARE Statements in SQL Server Transact-SQL
How to declare a variable in SQL Server Transact-SQL? How to use the DECLARE statements?
✍: FYIcenter.com
In Transact-SQL, you must use DECLARE statements to declare variables.
Declaring a variable is to define the variable name and the variable data type.
In Transact-SQL, you can:
Here are some example on how to declare variables in Transact-SQL:
DECLARE @country CHAR(3); DECLARE @name NVARCHAR(80), @city NVARCHAR(80); DECLARE @price MONEY = 9.99; DECLARE @now DATETIME = GETDATE();
⇒ SET Statements in SQL Server Transact-SQL
⇐ Binary String Data Types in SQL Server Transact-SQL
2017-04-04, 2831🔥, 0💬
Popular Posts:
How To Provide Default Values to Function Parameters in SQL Server Transact-SQL? If you add a parame...
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...
How To Get the Definition of a View Out of the SQL Server in SQL Server? If you want get the definit...
How To Get Help Information from the Server in MySQL? While you are at the "mysql>" prompt, y...
How To Recover a Dropped Index in Oracle? If you have the recycle bin feature turned on, dropped ind...