Multi-Statement Processing - 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

In a multi-statement request, the semicolons that begin the line are used only to separate the statements. BTEQ does not submit any of the statements to a Teradata Database until it encounters a semicolon as the last nonblank character of a line. At that time, BTEQ sends all statements to a Teradata Database for processing as one single request.

Note: Do not use an ANSI comment statement in conjunction with a semicolon character to indicate the final statement of a multi-statement request. If the semicolon appears after an ANSI comment, it is treated as part of the comment text string. If it appears before an ANSI comment, it does not qualify as the last nonblank character on the line.

For complete documentation on Teradata SQL, refer to SQL Fundamentals.