Firebird 2.1 LangRef Update

download Firebird 2.1 LangRef Update

of 220

  • date post

    24-Oct-2014
  • Category

    Documents

  • view

    25
  • download

    4

Embed Size (px)

Transcript of Firebird 2.1 LangRef Update

Firebird 2.1 Language Reference UpdateEverything new in Firebird SQL since InterBase 6

Paul Vinkenoog et al.9 December 2010, document version 1.0 covers Firebird 2.12.1.4

Firebird 2.1 Language Reference UpdateEverything new in Firebird SQL since InterBase 6 9 December 2010, document version 1.0 covers Firebird 2.12.1.4 Paul Vinkenoog et al.

Table of Contents1. Introduction ....................................................................................................................................... 1 Subject matter ................................................................................................................................ 1 Versions covered ............................................................................................................................ 2 Authorship ..................................................................................................................................... 2 2. Reserved words and keywords ............................................................................................................ 3 Added since InterBase 6 ................................................................................................................. 3 Newly reserved words ............................................................................................................ 3 New keywords ....................................................................................................................... 4 Dropped since InterBase 6 .............................................................................................................. 6 No longer reserved ................................................................................................................. 6 No longer keywords ............................................................................................................... 6 Possibly reserved in future versions ................................................................................................ 6 3. Miscellaneous language elements ........................................................................................................ 7 -- (single-line comment) ................................................................................................................. 7 Shorthand casts .............................................................................................................................. 7 CASE construct .............................................................................................................................. 8 Simple CASE ......................................................................................................................... 8 Searched CASE ...................................................................................................................... 9 4. Data types and subtypes ................................................................................................................... 10 BIGINT data type ......................................................................................................................... 10 BLOB data type ............................................................................................................................ 10 Text BLOB support in functions and operators ....................................................................... 10 Various enhancements .......................................................................................................... 11 New character sets ....................................................................................................................... 11 Character set NONE handling changed ........................................................................................... 12 New collations ............................................................................................................................. 13 Unicode collations for all character sets ................................................................................ 14 5. DDL statements ............................................................................................................................... 15 COLLATION ................................................................................................................................. 15 CREATE COLLATION ........................................................................................................... 15 DROP COLLATION ............................................................................................................... 17 COMMENT ................................................................................................................................... 17 DATABASE .................................................................................................................................. 18 CREATE DATABASE ............................................................................................................ 18 ALTER DATABASE .............................................................................................................. 19 DOMAIN ...................................................................................................................................... 21 CREATE DOMAIN ................................................................................................................ 21 ALTER DOMAIN .................................................................................................................. 21 EXCEPTION ................................................................................................................................. 22 CREATE EXCEPTION ........................................................................................................... 22 CREATE OR ALTER EXCEPTION .......................................................................................... 23 RECREATE EXCEPTION ....................................................................................................... 23 EXTERNAL FUNCTION ................................................................................................................ 23 DECLARE EXTERNAL FUNCTION ........................................................................................ 23 ALTER EXTERNAL FUNCTION ............................................................................................. 24 FILTER ........................................................................................................................................ 25 DECLARE FILTER ................................................................................................................ 25 INDEX ......................................................................................................................................... 26 iv

Firebird 2.1 Language Ref. UpdateCREATE INDEX ................................................................................................................... Privileges: GRANT and REVOKE .................................................................................................. REVOKE ADMIN OPTION ..................................................................................................... PROCEDURE ................................................................................................................................ CREATE PROCEDURE .......................................................................................................... ALTER PROCEDURE ............................................................................................................ CREATE OR ALTER PROCEDURE ......................................................................................... DROP PROCEDURE .............................................................................................................. RECREATE PROCEDURE ...................................................................................................... SEQUENCE or GENERATOR ......................................................................................................... CREATE SEQUENCE ............................................................................................................ CREATE GENERATOR .......................................................................................................... ALTER SEQUENCE ............................................................................................................... SET GENERATOR ................................................................................................................. DROP SEQUENCE ................................................................................................................ DROP GENERATOR .............................................................................................................. TABLE ......................................................................................................................................... CREATE TABLE ................................................................................................................... ALTER TABLE ..................................................................................................................... RECREATE TABLE ............................................................................................................... TRIGGER ..................................................................................................................................... CREATE TRIGGER ............................................................................................................... ALTER TRIGGER .................................................................................................................. CREATE OR ALTER TRIGGER ..................................