Null Statement Examples | SQL Statements | Teradata Vantage - Null Statement Examples - Teradata Vantage - Analytics Database

SQL Data Manipulation Language

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
pon1628111750298.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
esx1472246586715
lifecycle
latest
Product Category
Teradata Vantageā„¢

Example: Null Statement

The semicolon in the following request is a null statement.

     /* This example shows a comment followed by
        a semicolon used as a null statement */
     ;  UPDATE Pay_Test SET ...

Example: Null Statement and Statement Separator

The first SEMICOLON in the following request is a null statement. The second SEMICOLON is taken as statement separator.

     /*    This example shows a semicolon used as a null
           statement and as a statement separator */
           ;  UPDATE Payroll_Test SET Name = 'Wedgewood A'
              WHERE Name = 'Wedgewood A'
           ;  SELECT ...
     -- This example shows the use of an ANSI component
     -- used as a null statement and statement separator ;

Example: Single Null Statement

A SEMICOLON that precedes the first or only statement of a request is taken as a null statement.

     ; DROP TABLE temp_payroll;