Collections:
Assigning NULL Values to Variables or Columns in SQL Server
How To Assign NULL Values to Variables or Columns in SQL Server Transact-SQL?
✍: FYIcenter.com
The rule for assigning NULL values to variables or table columns is simple: Use keyword "NULL" directly as normal values.
The tutorial script below gives you some good examples:
USE FyiCenterData; GO -- assign NULL values to variables DECLARE @birth_date DATETIME; SET @birth_date = NULL; SELECT @birth_date; GO ----------------------- NULL -- assign NULL values to columns UPDATE fyi_links SET notes = NULL; GO (8 row(s) affected) -- assign NULL values to parameters EXEC sp_help NULL; GO Name ---------------- fyi_links_dump fyi_links_top fyi_links_view ...
⇒ NULL Values Involved in Arithmetic Operations in SQL Server
⇐ What Are NULL Values in SQL Server
2017-02-05, 2138🔥, 0💬
Popular Posts:
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
Where to find answers to frequently asked questions on CREATE, ALTER and DROP Statements in MySQL? H...
How to change the data type of an existing column with "ALTER TABLE" statements in SQL Server? Somet...
How To Calculate Age in Days, Hours and Minutes in SQL Server Transact-SQL? On many Web sites, news ...
How to connect SQL Server Management Studio Express to SQL Server 2005 Express in SQL Server? Once y...