2000-01-05 07:06:23 +01:00
|
|
|
--
|
|
|
|
-- COMMENTS
|
|
|
|
--
|
|
|
|
SELECT 'trailing' AS first; -- trailing single line
|
|
|
|
first
|
|
|
|
----------
|
|
|
|
trailing
|
1997-09-18 05:52:43 +02:00
|
|
|
(1 row)
|
|
|
|
|
|
|
|
SELECT /* embedded single line */ 'embedded' AS second;
|
2000-01-05 07:06:23 +01:00
|
|
|
second
|
|
|
|
----------
|
|
|
|
embedded
|
1997-09-18 05:52:43 +02:00
|
|
|
(1 row)
|
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
SELECT /* both embedded and trailing single line */ 'both' AS third; -- trailing single line
|
|
|
|
third
|
|
|
|
-------
|
|
|
|
both
|
1997-09-18 05:52:43 +02:00
|
|
|
(1 row)
|
|
|
|
|
|
|
|
SELECT 'before multi-line' AS fourth;
|
2000-01-05 07:06:23 +01:00
|
|
|
fourth
|
|
|
|
-------------------
|
|
|
|
before multi-line
|
1997-09-18 05:52:43 +02:00
|
|
|
(1 row)
|
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
/* This is an example of SQL which should not execute:
|
1997-09-18 05:52:43 +02:00
|
|
|
* select 'multi-line';
|
|
|
|
*/
|
|
|
|
SELECT 'after multi-line' AS fifth;
|
2000-01-05 07:06:23 +01:00
|
|
|
fifth
|
|
|
|
------------------
|
|
|
|
after multi-line
|
1997-09-18 05:52:43 +02:00
|
|
|
(1 row)
|
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
/* and this is the end of the file */
|