SELECT'trailing'AS first; -- trailing single line SELECT/* embedded single line */ 'embedded' AS second; SELECT/* both embedded and trailing single line */ 'both' AS third; -- trailing single line
SELECT'before multi-line'AS fourth; /* This is an example of SQL which should not execute: *select'multi-line';
*/ SELECT'after multi-line'AS fifth;
-- -- Nested comments --
/* SELECT'trailing'asjava.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 2
*/
/* This block comment surrounds a query which itself has a block comment...
SELECT /* embedded single line */ embedded AS;
*/
--- Nested comments /* Deeply nested comment. This aapostrophetomakesurewearen'tdecodingthispartasastring. ELECT'nest'ASn1; /* Second level of nesting... SELECT'deepernest'*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 /* Third level of nesting... SELECT'deepestnest'asn3;
*/
Hoo boy. Still two deep...
*/
Now just one deep...
*/
xth;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.