ANSI Comment Elements - Basic Teradata Query

Basic Teradata Query Reference

Product
Basic Teradata Query
Release Number
15.10
Language
English (United States)
Last Update
2018-10-07
dita:id
B035-2414
lifecycle
previous
Product Category
Teradata Tools and Utilities
 

Element

Function

Rules

-- (double dash)

Begins an ANSI comment

It can appear anywhere in a line after which everything in that line is a comment.

Text string

Contains the comment text

Can be as many characters as fills the line, less one for the terminator character.

<cr> (carriage return)

<lf> (line feed)

Terminates an ANSI comment

 

ANSI Comment Example

ANSI comments can appear anywhere in a command instruction, begin with a double-dash symbol (--), contain text, and end within a single line with either a carriage return <cr> or a line feed <lf>, as in the following example:

   .SHOW VERSION -- ANSI comment example text<cr>