Collections:
Single-byte String Literals in SQL Server Transact-SQL
What are single-byte string literals supported in SQL Server Transact-SQL?
✍: FYIcenter.com
Single-byte string literals in Transact-SQL are sequences of characters enclosed
in single quotes.
String literals are used to provide values to string variables or table columns like CHAR(40), VARCHAR(40), etc.
String literals are also used in string operations in expressions and string arguments in functions.
Here are some simple rules on how to write string literals:
Here are some example on how to write string literals:
PRINT 'FYIcenter.com'; PRINT 'Murphy''s law'; PRINT '2017-11-31'; PRINT 'Hello '+'Joe!'; DECLARE @var CHAR(16); SET @var = 'Hello World!'; PRINT @var;
⇒ Collation - Character Code Page in SQL Server Transact-SQL
⇐ Types of Data Literals in SQL Server Transact-SQL
2017-05-20, 2718🔥, 0💬
Popular Posts:
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...
Where to find answers to frequently asked questions on INSERT, UPDATE and DELETE Statements in MySQL...
What is SQL Server Transact-SQL (T-SQL)? SQL Server Transact-SQL, also called T-SQL, is an extension...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...
How To View Data Files in the Current Database in Oracle? If you want to get a list of all tablespac...