Skip to Main Content
Oracle SQL*Plus: The Definitive Guide
book

Oracle SQL*Plus: The Definitive Guide

by Jonathan Gennick
March 1999
Intermediate to advanced content levelIntermediate to advanced
528 pages
14h 39m
English
O'Reilly Media, Inc.
Content preview from Oracle SQL*Plus: The Definitive Guide

Double Hyphen (- -)

The double hyphen may be used to place a single-line comment in a SQL*Plus script, and is described in Chapter 4. The double hyphen works the same way as REMARK, except that it may also be used in SQL statements and PL/SQL blocks. When used in a SQL statement or PL/SQL block, the double-hyphen may also be used to add trailing comments to a line. The syntax looks like this:

--comment_text

where:

- -

Is a double hyphen, and tells SQL*Plus that the line in question is a comment line.

comment_text

Is your comment.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle SQL*Plus: The Definitive Guide, 2nd Edition

Oracle SQL*Plus: The Definitive Guide, 2nd Edition

Jonathan Gennick
Oracle PL/SQL Programming, Third Edition

Oracle PL/SQL Programming, Third Edition

Steven Feuerstein, Bill Pribyl
Oracle SQL

Oracle SQL

Dan Hotka

Publisher Resources

ISBN: 1565925785Supplemental ContentCatalog PageErrata