APOSTSQL|QUOTESQL -as | -qs Syntax |Preprocessor2 for Embedded SQL (PP2) - APOSTSQL|QUOTESQL
-as | -qs - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Preprocessor2
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2023-11-20
dita:mapPath
nyr1691484085721.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
xfi1470440464166
Product Category
Teradata Tools and Utilities

Purpose

APOSTSQL specifies that for embedded SQL statements, the string delimiter is the apostrophe (') and that the SQL escape (name) delimiter is the quotation mark (").

QUOTESQL specifies that in embedded SQL statements, the string delimiter is the quotation mark (") and that the SQL escape (name) delimiter is the apostrophe (').

Usage Notes

APOSTSQL and QUOTESQL are mutually exclusive.

Do not explicitly specify QUOTESQL in any language except COBOL.

These options do not affect string delimiters in host language statements.

Specification Language
QUOTESQL This is the default for COBOL, if QUOTE is specified.
APOSTSQL This is the default for COBOL, if APOST is specified or defaulted.
APOSTSQL This is the default for PL/I and cannot be changed.
APOSTSQL This is the default for C and cannot be changed.