Identifiers  Right truncation of character strings

Chapter 1: SQL Building Blocks

SQL standard-style comments

In Transact-SQL, comments are delimited by “/*” and “*/”, and can be nested. Transact-SQL also supports SQL standard-style comments, which consist of any string beginning with two connected minus signs, a comment, and a terminating new line:

select "hello" -- this is a comment

The Transact-SQL “/*” and “*/” comment delimiters are fully supported, but “--” within Transact-SQL comments is not recognized.





Copyright © 2005. Sybase Inc. All rights reserved. Right truncation of character strings

View this book as PDF