Character expression comparisons  Quotation marks

Chapter 1: SQL Building Blocks

Empty strings

An empty string (“”) or (‘’) is interpreted as a single blank in insert or assignment statements on varchar data. When varchar, char, nchar, or nvarchar data is concatenated, the empty string is interpreted as a single space. For example, this is stored as “abc def”:

"abc" + "" + "def"

An empty string is never evaluated as NULL.





Copyright © 2005. Sybase Inc. All rights reserved. Quotation marks

View this book as PDF