Collections:
Binary Literals in SQL Server Transact-SQL
What are binary literals supported in SQL Server Transact-SQL?
✍: FYIcenter.com
Binary literals in Transact-SQL are sequences of bytes
written in hexadecimal digits with 0x prefixes.
Binary literals are used to provide values to binary variables or table columns like BINARY, VARBINARY, IMAGE, etc.
Here are some simple rules on how to write binary literals:
Here are some example on how to write exact numeric literals:
PRINT 0xff; PRINT 0x00ff; PRINT 0x00ff00; DECLARE @var BINARY(4); SET @var = 0x41424344; PRINT @var;
⇒ Entering Binary String Literals in SQL Server Transact-SQL
⇐ Approximate Numeric Literals in SQL Server Transact-SQL
2017-05-05, 13494🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on Transaction Management: Commit or Rollback in...
How To Connect to a MySQL Server with a Port Number in MySQL? If you want to connect a MySQL server ...
How to connect SQL Server Management Studio Express to SQL Server 2005 Express in SQL Server? Once y...
What is dba.FYIcenter.com Website about? dba.FYIcenter.com is a Website for DBAs (database administr...
How To Install PHP on Windows in MySQL? The best way to download and install PHP on Windows systems ...