21.10.2013 Views

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Firebird</strong> <strong>2.1</strong> <strong>Language</strong> Ref. <strong>Update</strong><br />

CREATE INDEX ................................................................................................................... 26<br />

Privileges: GRANT and REVOKE .................................................................................................. 28<br />

REVOKE ADMIN OPTION ..................................................................................................... 28<br />

PROCEDURE ................................................................................................................................ 29<br />

CREATE PROCEDURE .......................................................................................................... 29<br />

ALTER PROCEDURE ............................................................................................................ 32<br />

CREATE OR ALTER PROCEDURE ......................................................................................... 33<br />

DROP PROCEDURE .............................................................................................................. 33<br />

RECREATE PROCEDURE ...................................................................................................... 33<br />

SEQUENCE or GENERATOR ......................................................................................................... 34<br />

CREATE SEQUENCE ............................................................................................................ 34<br />

CREATE GENERATOR .......................................................................................................... 35<br />

ALTER SEQUENCE ............................................................................................................... 35<br />

SET GENERATOR ................................................................................................................. 36<br />

DROP SEQUENCE ................................................................................................................ 36<br />

DROP GENERATOR .............................................................................................................. 36<br />

TABLE ......................................................................................................................................... 37<br />

CREATE TABLE ................................................................................................................... 37<br />

ALTER TABLE ..................................................................................................................... 42<br />

RECREATE TABLE ............................................................................................................... 45<br />

TRIGGER ..................................................................................................................................... 45<br />

CREATE TRIGGER ............................................................................................................... 45<br />

ALTER TRIGGER .................................................................................................................. 50<br />

CREATE OR ALTER TRIGGER .............................................................................................. 52<br />

DROP TRIGGER ................................................................................................................... 52<br />

RECREATE TRIGGER ........................................................................................................... 52<br />

VIEW ........................................................................................................................................... 53<br />

CREATE VIEW ..................................................................................................................... 53<br />

RECREATE VIEW ................................................................................................................. 55<br />

6. DML statements ............................................................................................................................... 56<br />

DELETE ....................................................................................................................................... 56<br />

COLLATE subclause for text BLOB columns .......................................................................... 56<br />

ORDER BY ........................................................................................................................... 57<br />

PLAN ................................................................................................................................... 57<br />

Relation alias makes real name unavailable ........................................................................... 57<br />

RETURNING ......................................................................................................................... 57<br />

ROWS .................................................................................................................................. 58<br />

EXECUTE BLOCK ........................................................................................................................ 59<br />

COLLATE in variable and parameter declarations ................................................................... 61<br />

NOT NULL in variable and parameter declarations ................................................................. 61<br />

Domains instead of datatypes ................................................................................................ 61<br />

EXECUTE PROCEDURE ................................................................................................................ 62<br />

INSERT ........................................................................................................................................ 63<br />

INSERT ... DEFAULT VALUES .............................................................................................. 64<br />

RETURNING clause .............................................................................................................. 64<br />

UNION allowed in feeding SELECT ....................................................................................... 64<br />

MERGE ........................................................................................................................................ 65<br />

SELECT ....................................................................................................................................... 66<br />

Aggregate functions: Extended functionality .......................................................................... 66<br />

COLLATE subclause for text BLOB columns .......................................................................... 68<br />

Common Table Expressions (“WITH ... AS ... SELECT”) ......................................................... 68<br />

Derived tables (“SELECT FROM SELECT”) ............................................................................ 71<br />

v

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!