Standard SQL comment

Source: Internet
Author: User

I used to think that the C-language style comment "/*… */"Is a standard SQL comment. Today, I checked the sql92 specification and found that the standard comment is" -- ". Of course, notes such as sql92 can only comment a row, which has its limitations.

By the way, I checked various SQL standard versions. As follows:

1986
SQL-86
SQL-87
First formalized by ANSI.

1989
SQL-89
FIPS 127-1
Minor revision, adopted as FIPS 127-1.

1992
SQL-92
Sql2, FIPS 127-2
Major revision (ISO 9075 ),Entry LevelSQL-92 adopted as FIPS 127-2.

1999
SQL: 1999
Sql3
Added Regular Expression matching, recursive queries, triggers, support for procedural and control-of-flow statements, non-scalar types, and some object-oriented features.

2003
SQL: 2003
Introduced XML-related features,Window functions, Standardized sequences, and columns with auto-generated values (including identity-columns ).

2006
SQL: 2006
ISO/IEC 9075-Defines ways in which SQL can be used in conjunction with XML. it defines ways of importing and storing XML data in an SQL database, manipulating it within the database and publishing both XML and conventional SQL-data in XML form. in addition, it enables applications to integrate into their SQL code the use of XQuery, the XML query language published by the World Wide Web Consortium (W3C ), to Concurrently access ordinary SQL-data and XML documents.

2008
SQL: 2008
Legalizes order by outside cursor definitions. Adds instead of triggers. adds the truncate statement. [21]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.