PreviousSQL Engine Reference (v9 SP2 (9.5) revision 1)

SQL Engine Reference - Index

A - B - C - D - E - F - G - H - I - J - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - Symbols


A

ABS

ACOS

ADD

grammar supported

Aggregate functions

AVG

COUNT

MAX

MIN

SUM

DECIMAL precision and

ALL

grammar supported

ALTER TABLE

grammar supported

IN DICTIONARY keyword

use with COBOL

USING keyword

WITH REPLACE keyword

alter-option (grammar element defined)

alter-option SQL grammar element definition

alter-option-list (grammar element defined)

alter-option-list SQL grammar element definition

AND bitwise operator

ANDed predicate

maximum in SQL statement

ANSI

character translation

ANY

grammar supported

API functions

ODBC supported

Approximate-numeric-literal

grammar supported

Arguments

number in a parameter list for stored procedures 1 2

Arithmetic

floating point comparison

AS

grammar supported

as-or-semicolon SQL grammar element definition

ASCII

ASIN

ATAN

ATAN2

ATTRIB.DDF

attributes ignored by Pervasive PSQL

AUTOINC data type

AUTOINC(4) data type

AUTOINCREMENT data type

AVG aggregate function

B

before-or-after (grammar element defined)

before-or-after SQL grammar element definition

BEGIN

grammar supported

Between-predicate

grammar supported

BFLOAT data type 1 2

BFLOAT4 data type

BFLOAT8 data type

BIGINT data type

BINARY data type

0-padded if odd digits

default value not supported

notes about

SELECT and

Binary Large Objects

BIT data type 1 2

BIT_LENGTH

Bitwise operators

See Operators

BLOB data type 1 2

default value not supported

Bound databases

IN DICTIONARY not permitted 1 2

Btrieve owner names See Owner names

Btrieve temporary file

C

Cache

cached_procedures setting

excluding stored procedures with DDL 1 2

excluding stored procedures with EXEC 1 2

excluding stored procedures with temporary tables 1 2

exclusions to caching stored procedures 1 2

procedures_cache setting

stored procedures 1 2

Cached_procedures setting

Caching

cached_procedures setting

excluding stored procedures with DDL 1 2

excluding stored procedures with EXEC 1 2

excluding stored procedures with temporary tables 1 2

exclusions to caching stored procedures 1 2

procedures_cache setting

stored procedures 1 2

CALL

calling a stored procedure

grammar supported

call-arguments SQL grammar element definition

CASCADE

grammar supported

ON DELETE

CASE

grammar supported

CASE (grammar element defined)

case_value_expression (grammar element defined)

CAST

CB001

CB002

CB003

CB004

CB005

CB006

CB007

CB008

CB009

CB010

CB012

CB013

CB014

CB016

CB017

CB018

CB019

CB022

CB023

CB024

CB025

CB028

CB029

CB050

CB051

CB052

CB057

CB099

CB100

CB101

CB102

CB103

CB105

CB106

CB108

CB109

CB110

CEILING

Changing

System Tables

CHAR

CHAR data type

notes about

CHAR_LENGTH

Character

escape for wildcard characters

translation

OEM to ANSI

CHARACTER_LENGTH

CLOB data type 1 2

default value not supported

CLOSE

grammar supported

Closing

open tables

COALESCE

grammar supported

COALESCE ( (grammar element defined)

COBOL

DBCobolNumeric setting

Schema Executor

example usage

executing sample XML file

log messages

sign value for positive NUMERIC data types

SQL access for applications

SQL enhanced access

components

Schema Executor

using

use of ALTER TABLE statement

use of CREATE INDEX

use of CREATE INDEX IN DICTIONARY

use of CREATE TRIGGER

use of DELETE

use of DROP TABLE

use of INSERT INTO

use of UPDATE

Codes

data type

col-constraint (grammar element defined) 1 2

col-constraint SQL grammar element definition

collation-name (grammar element defined) 1 2

collation-name SQL grammar element definition

Column

attributes

system table (X$Attrib)

definitions

changing

creating

maximum

name length

number

number allowed in a trigger

number in a select list

number in a table

size of

system table (X$Field)

column-constraint (grammar element defined) 1 2

column-constraint SQL grammar element definition

column-definition (grammar element defined) 1 2

column-definition SQL grammar element definition

column-name (grammar element defined) 1 2

column-name SQL grammar element definition

Columns

number allowed in a trigger

Comma

as decimal separator

data display 1 2

data entry

COMMIT

grammar supported

commit-statement SQL grammar element definition

comparison-operator (grammar element defined)

comparison-operator SQL grammar element definition

Compressing data files

with SQL

CONCAT

Concurrency

Connection

maximum number of connections

Connection strings

DSN

TRANSLATIONDLL

Constant values, expressing

date

string

time

timestamp

constraint-name (grammar element defined) 1 2

constraint-name SQL grammar element definition

CONVERT 1 2

truncating DATETIME milliseconds

Converting

data to other types

Correlated subquery 1 2

Correlation-name

grammar supported

correlation-name SQL grammar element definition

COS

COT

COUNT aggregate function

COUNT( ), COUNT(*) functions

differences 1 2

CREATE FUNCTION

grammar supported

CREATE GROUP

grammar supported

CREATE INDEX

grammar supported

limitations

use with COBOL

CREATE INDEX IN DICTIONARY

use with COBOL

CREATE PROCEDURE

grammar supported

CREATE TABLE

and temporary tables

file compression

grammar supported

IN DICTIONARY keyword

page size

USING keyword

WITH REPLACE keyword

CREATE TABLE syntax

and temporary tables

CREATE TRIGGER

grammar supported

use with COBOL

Create user

using CREATE USER

using GRANT LOGIN

CREATE USER

grammar supported

CREATE VIEW

grammar supported

Creating

groups

stored procedures

tables with legacy null support

user-defined functions

users and groups

views

CURDATE

CURRENCY data type 1 2 3

Current Date

adding to an INSERT statement 1 2

Current Time

adding to an INSERT statement 1 2

CURRENT_DATE

CURRENT_TIME

CURRENT_TIME()

CURRENT_TIMESTAMP

Cursor

how to loop through

limits

type changed by TOP

cursor-name SQL grammar element definition

CURTIME

CURTIME()

D

Data

long, inserting or updating

Data control statements

Data definition language

see DDL

Data definition statements

Data dictionaries

list of system tables

Data files

binary compatible cross-platform 1 2

replacing existing 1 2

system table (X$File)

Data manipulation

statements

Data Source Names

connection string keywords

clients

engine

Data type

AUTOINC

AUTOINC(4)

BFLOAT

BFLOAT4

BFLOAT8

BIGINT

BINARY

BIT 1 2

BLOB

CHAR

CLOB

CURRENCY 1 2

DATE 1 2

DATETIME

DECIMAL 1 2

DOUBLE

FLOAT(4)

FLOAT(8)

GUID

IDENTITY

INTEGER

INTEGER(1)

INTEGER(2)

INTEGER(4)

INTEGER(8)

LONGVARBINARY

LONGVARCHAR

NUMERIC 1 2

NUMERICSA 1 2

NUMERICSTS 1 2

REAL

SMALLIDENTITY

SMALLINT

SQL_BINARY(-2)

SQL_BIT(-7) 1 2

SQL_CHAR(1)

SQL_DATE(9)

SQL_DECIMAL(3) 1 2 3 4

SQL_DOUBLE(8) 1 2

SQL_GUID(-11)

SQL_INTEGER(4) 1 2 3

SQL_LONGVARBINARY(-4)

SQL_LONGVARCHAR(-1)

SQL_NUMERIC(2) 1 2 3

SQL_REAL(7) 1 2

SQL_SMALLINT(5) 1 2 3

SQL_TIME(10)

SQL_TIMESTAMP(11)

SQL_TINYINT(-6) 1 2

SQL_VARCHAR(12)

STRING

TIME 1 2

TIMESTAMP 1 2

TINYINT

UBIGINT

UINTEGER

UNIQUEIDENTIFIER 1 2 3 4

UNSIGNED(1) BINARY

UNSIGNED(2) BINARY

UNSIGNED(4) BINARY

UNSIGNED(8) BINARY

USMALLINT

UTINYINT

VARCHAR

WSTRING

WSZSTRING

ZSTRING

Data types

AUTOINCREMENT

BFLOAT

BLOB

CLOB

codes

conversion

converting to other types

CURRENCY

DATE

DECIMAL

extended

FLOAT

INTEGER

lengths and ranges

limitations in stored procedures

limitations in triggers

limitations in user-defined functions

LOGICAL

LSTRING

MONEY

not supported by relational interface

NUMERIC

NUMERICSA

NUMERICSTS

REAL

STRING

supported

that cannot be indexed

TIME

TIMESTAMP

UNSIGNED BINARY

WSTRING

WZSTRING

ZSTRING

data-type (grammar element defined) 1 2

data-type SQL grammar element definition

data-type-name SQL grammar element definition

Database

in which temporary tables are stored

object name

fully qualified restriction

DATABASE

Databases

joining multiple

Date

adding in INSERT statements

format supported 1 2

functions supported

inserting current 1 2

inserting or updating column values 1 2

literal format 1 2

literal values

TIMESTAMP data type

why not to use

Date arithmetic

grammar supported 1 2

DATE data type 1 2 3

Date-literal

grammar supported

DATEADD scalar function

DATEDIFF scalar function

DATENAME scalar function

DATEPART scalar function

DATETIME

truncating milliseconds with CONVERT

DATETIME data type

Daylight savings, see Time

DAYNAME

DAYOFMONTH

DAYOFYEAR

db-name SQL grammar element definition

DBCobolNumeric setting

DCOMPRESS

DDFs

changing data definitions without affecting data files

DDL

creating index

creating stored procedure

creating table

creating trigger

creating user-defined function

creating view

deleting index

deleting stored procedure

deleting table

deleting trigger

deleting user-defined function

deleting view

exclusion to caching stored procedure 1 2

modifying table

DECIMAL data type 1 2 3

precision of SUM() function result

Decimal separator

comma

display only 1 2

comma as 1 2 3

DECLARE

grammar supported

DECLARE CURSOR

grammar supported

DEFAULT

example of use in CREATE TABLE 1 2

in UPDATE 1 2

Default values, see Values, default

default-value-expression (grammar element defined) 1 2

Definitions

index

Btrieve indexes and 1 2 3 4

DEGREES

Delete

rule

cascade

restrict

DELETE

grammar supported 1 2

use with COBOL

Deleting

view

Delimited identifier

in SQL Statements

Delimiter

for identifiers in SQL statements

SQL statement in PCC

DEPEND.DDF

Disabling security

Disjointed index, definition of

DISTINCT

grammar supported

in subquery

DOUBLE data type

Double quote

matching data that contains a

Double quotes

delimiter for identifiers in SQL statements

DROP FUNCTION

grammar supported

DROP INDEX

grammar supported

DROP PROCEDURE

grammar supported

DROP TABLE

grammar supported

IN DICTIONARY keyword

use with COBOL

DROP TRIGGER

grammar supported

DROP VIEW

grammar supported

DSN

connection strings

Dynamic cursors

SET ROWCOUNT and

type changed by TOP

E

Enabling

security

END

grammar supported

Escape character

Exact-numeric-literal

grammar supported

Exceptions

to ODBC API support

SQLGetData

SQLGetInfo

SQLGetTypeInfo

SQLSpecialColumns

Exclusive OR bitwise operator

EXEC

exclusion to caching stored procedure 1 2

EXECUTE

exclusion to caching stored procedure 1 2

EXISTS

grammar supported

EXP

Expression

in stored procedures

subquery on left side of

expression (grammar element defined)

expression-or-subquery (grammar element defined)

expression-or-subquery SQL grammar element definition

Expressions as Default Values for Date-Time Columns

Supported Data Types and Constraints

Usage Context

Extended data types

EXTRACT

F

FETCH

grammar supported

fetch-orientation (grammar element defined)

fetch-orientation SQL grammar element definition

Field.ddf

FIELD.DDF

File

compression, specifying with SQL

File.ddf

FILE.DDF

Files

location of temporary

temporary

FLOAT data type

comparing values

FLOAT(4) data type

FLOAT(8) data type

FLOOR

FOREIGN KEY

cannot ALTER column

grammar supported

Format

literal values

date

string

time

timestamp

Formats, literal

date 1 2

string

time 1 2

timestamp 1 2

Functions

aggregate

AVG

COUNT

MAX

MIN

SUM 1 2

conversion

date

inserting value

DATEADD

DATEDIFF

DATENAME

DATEPART

logical

numeric

string

system

time

inserting current

inserting value

G

Global variables

@@IDENTITY

@@ROWCOUNT

@@SPID

Grammar element definitions

alter-option

alter-option-list

before-or-after

CASE

case_value_expression

COALESCE (

col-constraint 1 2

collation-name 1 2

column-constraint 1 2

column-definition 1 2

column-name 1 2

comparison-operator

constraint-name 1 2

data-type 1 2

default-value-expression 1 2

expression 1 2

expression-or-subquery

fetch-orientation

ins-upd-del

join-definition

join-type

literal 1 2

order-by-expression

outer-join-definition

outer-join-type

parameter

parameter-type

parameter-type-name

predicate

proc-expr

proc-search-condition

proc-stmt

procedure-name

query-specification

referencing-alias

referential-actions 1 2

referential-delete-action 1 2

referential-update-action 1 2

scalar-function

search-condition

select-item

select-list 1 2

set-function

sqlstate-value

subquery-expression

table-constraint 1 2 3 4

table-constraint-definition 1 2

table-element 1 2

table-name 1 2

table-reference 1 2

top-clause

transaction-statement

trigger-name

value

values-clause

view-name

Grammar Element Definitions

GRANT

creating a user with GRANT LOGIN

grammar supported

Granting

rights

Greater than (>) operator

Group

creating a

GROUP BY

grammar supported

with a HAVING clause

group-name SQL grammar element definition

GUID data type

H

HAVING

in a GROUP BY expression

HOUR

How

to loop through a cursor

I

Identifiers

delimited in SQL statements

IDENTITY data type

IDENTITY global variable. See @@IDENTITY

IF

grammar supported

nesting limit

IF (with SELECT)

grammar supported

IFNULL

IN

grammar supported

IN DICTIONARY keyword 1 2 3 4

not permitted on bound databases 1 2

In-memory temporary file

In-predicate

grammar supported

Index

creating

data types that cannot be indexed

definitions, SQL

Btrieve indexes and 1 2 3 4

disjointed, definition of

dropping named

maximum indexed nullable columns

name

maximum length of

optimizations

index-definition SQL grammar element definition

index-name SQL grammar element definition 1 2

index-segment-definition SQL grammar element definition

Index.ddf

INDEX.DDF

Indexes

existing Btrieve and relational definitions 1 2 3 4

existing used when possible 1 2 3 4

system tables

X$Field

X$Index

Infinity

representation

ins-upd-del (grammar element defined)

ins-upd-del SQL grammar element definition

INSERT

default values and

grammar supported

INSERT INTO

use with COBOL

insert-values SQL grammar element definition

Inserting

current time, current date and timestamp 1 2 3

INTEGER data type 1 2

INTEGER(1) data type

INTEGER(2) data type

INTEGER(4) data type

INTEGER(8) data type

Invalid row-count in subquery

returned if SELECT within UPDATE returns multiple rows

ISNULL

J

Join

Cartesian

cross-database

LEFT OUTER

maximum tables in a

multi-database

RIGHT OUTER

TOP clause in a

two-way LEFT OUTER JOIN

JOIN

grammar supported

join type (grammar element defined)

join-definition (grammar element defined)

join-definition SQL grammar element definition

L

label-name SQL grammar element definition

LCASE

LEAVE

grammar supported

LEFT

LEFT OUTER JOIN

and vendor strings

syntax

Length

maximum for column name

of path name in USING 1 2

LENGTH

Less than (<) operator

LIKE

syntax and usage

LIKE predicates

on LONGVARBINARY

on LONGVARCHAR

Limitations

columns, number of

of LONGVARBINARY

of LONGVARBINARY in INSERT statements

of LONGVARCHAR

of LONGVARCHAR in INSERT statements

of LONGVARCHAR in UNION statements

Limits

cursors

maximum ANDed predicates in SQL statement

maximum size of quoted string in SQL statement

of Pervasive ODBC Engine interface

SQL variables and parameters

stored procedures

arguments in a parameter list 1 2

procedure name

size 1 2

variable name

triggers

number of columns 1 2

when using long data

literal (grammar element defined) 1 2

literal SQL grammar element definition

Literal values

date

string

entering data longer than max

time

timestamp

Locale

setting time zone

Locale-specific behavior

comma as decimal separator

data display 1 2

data entry

LOCATE

LOG

LOG10

LOGICAL data type

Logical functions supported

Long data

inserting or updating

limits when using

LONGVARBINARY

limitation

limitations in INSERT statements

notes about

using SQLGetData

LONGVARBINARY data type

LONGVARCHAR

limitations

limitations in INSERT statements

limitations in UNION statements

notes about

using SQLGetData

LONGVARCHAR data type

LOOP

grammar supported

LSTRING data type

LTRIM

M

Master user

MAX aggregate function

Maximum

column name length

length of view name

Metadata

Schema Executor

Milliseconds

truncating from DATETIME

MIN aggregate function

MINUTE

MOD

Modifying

data

statements for

MONEY data type

MONTH

MONTHNAME

N

Name

fully qualified name of database object

Named databases

and file names 1 2

Names

maximum length

Nesting limits

IF

NEWID scalar function

Non-correlated subquery

NOT

grammar supported

NOT bitwise operator

NOT NULL

default values and

NOW

Null

support

creating tables with legacy

setting for table creation 1 2

NULL

attempted insert into NOT NULL column with default value

cannot make column nullable

inserted by UPDATE if subquery returns no rows

Nullable columns

default value for

maximum number of indexed

NULLIF

NUMERIC data type 1 2 3

sign value for positive data type

Numeric functions supported

NUMERICSA data type 1 2 3

NUMERICSTS data type 1 2 3

O

Object name

fully qualified restriction

Occurs DDF

Occurs.DDF

OCTET_LENGTH

ODBC

API

exceptions

support

security

support

Support

Attribute

Interface

supported APIs

ODBC API

functions

supported

OEM to ANSI

character translation

connection string

ON DELETE

ON UPDATE

On-disk temporary file

ONLY

grammar supported

Operators

bitwise

bitwise AND (&)

bitwise Exclusive OR (^)

bitwise NOT (~)

bitwise OR (|)

truth table for bitwise operations

greater than

less than

Optimizations

index usage

restriction

SQL Relational Database Engine

subquery on left side of expression

OR bitwise operator

ORDER BY

SET ROWCOUNT and

TOP and

order-by-expression (grammar element defined)

order-by-expression SQL grammar element definition

outer-join-definition (grammar element defined)

outer-join-definition SQL grammar element definition

outer-join-type (grammar element defined)

outer-join-type SQL grammar element definition

Owner names

in secured databases

specifying in SQL

P

Padding

in BINARY columns

in CHAR columns

in LONGVARBINARY columns

in LONGVARCHAR columns

in VARCHAR columns

Page

sizes

specifying with SQL

PAGESIZE

parameter (grammar element defined)

Parameter List

number of arguments for stored procedures 1 2

parameter SQL grammar element definition

parameter-name SQL grammar element definition

parameter-type (grammar element defined)

parameter-type SQL grammar element definition

parameter-type-name (grammar element defined)

parameter-type-name SQL grammar element definition

Password

for Master user

restrictions

password SQL grammar element definition

Path name

length in USING 1 2

Pattern matching

with LIKE

Performance

SQL Relational Database Engine

temporary tables

Permissions. See Rights

Pervasive Control Center

OEM characters and

Pervasive ODBC Engine interface

data types supported

limits of

SQL support

PI

POSITION

positional-argument SQL grammar element definition

POWER

Precedence

TOP vs. SET ROWCOUNT 1 2

Precision

SUM result on DECIMAL data

precision SQL grammar element definition

Predicate

in stored procedures

predicate (grammar element defined)

predicate SQL grammar element definition

PRIMARY KEY

cannot ALTER column

grammar supported

PRINT

grammar supported

proc-expr (grammar element defined)

proc-expr SQL grammar element definition

proc-search-condition (grammar element defined)

proc-search-condition SQL grammar element definition

proc-stmt (grammar element defined)

proc-stmt SQL grammar element definition

PROC.DDF

Procedure

cached_procedures setting

caching of stored procedure 1 2

exclusions to caching of stored procedure 1 2

procedures_cache setting

procedure-name (grammar element defined)

procedure-name SQL grammar element definition

Procedures

creating

Procedures_cache setting

psp_column_attributes

psp_column_rights

psp_columns

psp_fkeys

psp_groups

psp_help_sp

psp_help_trigger

psp_help_udf

psp_help_view

psp_indexes

psp_pkeys

psp_stored_procedures

psp_table_rights

psp_tables

psp_triggers

psp_udfs

psp_users

psp_views

PUBLIC

grammar supported

public-or-user-group-name SQL grammar element definition

Push down filter

See table filter

Q

QUARTER

query-specification (grammar element defined)

query-specification SQL grammar element definition 1 2

Quotation mark, representing single

Quoted string in SQL statement

maximum size

Quotes

matching data that contains

R

RADIANS

RAND

Ranges

data types

REAL data type 1 2

Real Infinity

representation

referencing-alias (grammar element defined)

referencing-alias SQL grammar element definition

Referential integrity

delete rules 1 2

update rules

X$Relate system table

referential-actions (grammar element defined) 1 2

referential-actions SQL grammar element definition

referential-delete-action (grammar element defined) 1 2

referential-delete-action SQL grammar element definition

referential-update-action (grammar element defined) 1 2

referential-update-action SQL grammar element definition

Regional settings

comma as decimal separator

data display 1 2

data entry

RELATE.DDF

Relational index definitions

Btrieve indexes and 1 2 3 4

Relational interface

data types not supported

Relational security

RELEASE SAVEPOINT

grammar supported

release-statement SQL grammar element definition

REPLACE

Replacing data files 1 2

REPLICATE

Replication

SET TIME ZONE and

Reserved words

~See also Words to avoid

ABORT

ACCELERATED

ADD

AFTER

ALL

ALTER

AND

ANY

AS

ASC

ATOMIC

AVG

BEFORE

BEGIN/BEGINS

BETWEEN

BORDER

BY

CALL

CASCADE

CASE

CAST

CHECk

CLOSE

COALESCE

COLLATE

COLUMN

COMMIT

COMMITTED

CONSTRAINT

CONVERT

COUNT

CREATE

CREATESP

CREATETAB

CREATEVIEW

CROSS

CS

CURDATE

CURRENT

CURSOR

CURTIME

DATABASE

DCOMPRESS

DDF

DECIMALSEPARATORCOMMA

DECLARE

DEFAULT

DELETE

DENY

DESC

DIAGNOSTICS

DICTIONARY

DISTINCT

DO

DROP

DSN

EACH

ELSE

END

ENFORCED

EX

EXCLUSIVE

EXEC

EXECUTE

EXISTING

EXISTS

FETCH

FN

FOR

FOREIGN

FROM

FULL

FUNCTION

GRANT

GROUP

HANDLER

HAVING

IF

IN

INDEX

INNER

INOUT

INSERT

INTEGRITY

INTERNAL

INTO

IS

ISOLATION

JOIN

KEY

LEAVE

LEFT

LEGACYOWNERNAME

LEVEL

LIKE

LOGIN

LOOP

MAX

MIN

MODE

MODIFIABLE

MODIFY

NEW

NEXT

NO

NORMAL

NOT

NOW

NULL

OF

OFF

OLD

ON

ONLY

OPEN

OR

ORDER

OUT

OUTER

OWNER

PAGESIZE

PRIMARY

PRINT

PROCEDURE

PUBLIC

READ

REFERENCES

REFERENCING

RELATIONAL

RELEASE

REPEAT

REPEATABLE

REPLACE

RESTRICT

RETURN

RETURNS

REVOKE

RIGHT

ROLLBACK

ROW

ROWCOUNT

SAVEPOINT

SECURITY

SELECT

SERIALIZABLE

SET

SIGNAL

SIZE

SQLSTATE

SSP_EXPR

SSP_PRED

START

SUM

SVBEGIN

SVEND

T

TABLE

THEN

TO

TOP

TRANSACTION

TRIGGER

TRIGGERSTAMPMISC

TRUEBITCREATE

TRUENULLCREATE

TS

UNCOMMITTED

UNION

UNIQUE