Collections:
Constant or Data Literal in SQL Server Transact-SQL
What Is a Constant or Literal in SQL Server Transact-SQL?
✍: FYIcenter.com
A constant, or data literal, is a symbolic expression that represents a specific value of a specific data type in SQL Server Transact-SQL. Constants or literals are used commonly as the default values for table columns, variables, and parameters.
Constants or data literals are also used as operands to construct operations and expressions.
Here are some examples of data literals SQL Server Transact-SQL:
-2255 -- A literal represents a negative integer of -2255 1894.1204 -- A literal represents a decimal number of 1894.1204 9.22337e+3 -- A literal represents a floating number of 9223.37 'FYIcenter.com' -- A literal represents a single-byte string N'FYIcenter.com' -- A literal represents a Unicode string 0x69048AEFDD010E -- A literal represents a binary string €542023.14 -- A literal represents a currency value
⇒ Types of Data Literals in SQL Server Transact-SQL
⇐ Data Literals in SQL Server Transact-SQL
2017-05-20, 3464🔥, 0💬
Popular Posts:
How to continue to the next iteration of a WHILE loop in SQL Server Transact-SQL? How to use CONTINU...
How To Divide Query Output into Multiple Groups with the GROUP BY Clause in SQL Server? Sometimes, y...
Where to find SQL Server database server tutorials? Here is a collection of tutorials, tips and FAQs...
How To Start MySQL Server in MySQL? If you want to start the MySQL server, you can run the "mysqld" ...
How To Format Time Zone in +/-hh:mm Format in SQL Server Transact-SQL? From the previous tutorial, y...