Comments - MultiLoad

Teradata® MultiLoad Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
MultiLoad
Release Number
20.00
Published
October 2023
Language
English (United States)
Last Update
2024-03-18
dita:mapPath
lji1691576359330.ditamap
dita:ditavalPath
kju1619195148891.ditaval
dita:id
sga1478609868891
Product Category
Teradata Tools and Utilities

The following table lists descriptions of C language style comments supported in Teradata MultiLoad.

Notes About Teradata MultiLoad Comments  
Comment Topic Description
Beginning and Ending Delimiters A comment begins with a slash-asterisk (/*) character sequence and ends with an asterisk-slash (*/) sequence. All intervening text is treated as a comment.
Comment Destinations Comments are always written to the message destination and they may or may not be sent to the database.

Comments that are followed by a semicolon character are considered to be standalone:

/*Comment text*/;
CREATE TABLE table1(f1 INTEGER);

In this case, the comment is not associated with the SELECT statement and is not sent to the database.

Comments that are not followed by a semicolon character are considered to be part of the following command or statement:

/*Comment text*/
CREATE TABLE table1(f1 INTEGER);

In this case, the comment is associated with the SELECT statement and is sent to the database.

Invalid Within String or Character Literals Comments cannot occur within string or character literals. A /* within a quoted string is not treated as the beginning of a comment.
Nested Comments Teradata MultiLoad supports nested comments, but the database does not.

Always delimit nested comments with a semicolon character.

If a semicolon is not used to delimit a nested comment, it is considered to be part of the current command or statement. If that happens to be a Teradata SQL statement, it is sent to the database, producing a syntax error.

Using Comments With Teradata SQL Statements If a comment with a Teradata SQL statement is used, add a semicolon to the end of the comment if the comment should not be sent to the database.

If a semicolon is not used, Teradata MultiLoad sends the comment to the database along with the Teradata SQL statement.

Variable Substitution Substitution of values for variable names continues within comments. Use two ampersand characters (&&) when the variable name is required.