Delimiters are special characters having meanings that depend on context.
The function of each delimiter appears in the following table.
Delimiter | Name | Purpose |
---|---|---|
( ) |
LEFT PARENTHESIS RIGHT PARENTHESIS |
Group expressions and define the limits of various phrases. |
, | COMMA | Separates and distinguishes column names in the select list, or column names or parameters in an optional clause, or DateTime fields in a DateTime type. |
: | COLON | Prefixes reference parameters or client system variables. Also separates DateTime fields in a DateTime type. |
. | FULLSTOP |
|
; | SEMICOLON |
|
’ | APOSTROPHE |
|
“ | QUOTATION MARKS | Defines the boundaries of nonstandard names. |
/ | SOLIDUS | Separates DateTime fields in a DateTime type. |
B b |
Uppercase B Lowercase b |
|
- | HYPHEN-MINUS |
Example: Using Delimiters
In the following statement submitted through BTEQ, the FULLSTOP separates the database name (Examp and Personnel) from the table name (Profiles and Employee), and, where reference is qualified to avoid ambiguity, it separates the table name (Profiles, Employee) from the column name (DeptNo).
UPDATE Examp.Profiles SET FinGrad = 'A' WHERE Name = 'Phan A' ; SELECT EdLev, FinGrad,JobTitle, YrsExp FROM Examp.Profiles, Personnel.Employee WHERE Profiles.DeptNo = Employee.DeptNo ;
The first SEMICOLON separates the UPDATE statement from the SELECT statement. The second SEMICOLON terminates the entire multistatement request.
The semicolon is required in Teradata SQL to separate multiple statements in a request and to terminate a request submitted through BTEQ.