FirebirdSQL logo

The Firebird 5.0 Language Reference

Firebird 5.0 Language Reference

About the Firebird 5.0 Language Reference
SQL Language Structure
Data Types and Subtypes
Integer Data Types

Integer Data Types

Floating-Point Data Types

Floating-Point Data Types

Fixed-Point Data Types

Fixed-Point Data Types

Data Types for Dates and Times

Data Types for Dates and Times

Character Data Types

Character Data Types

Boolean Data Type

Boolean Data Type

Binary Data Types

Binary Data Types

Array Types

Array Types

Special Data Types

Special Data Types

Conversion of Data Types

Conversion of Data Types

Custom Data Types — Domains

Custom Data Types — Domains

Data Type Declaration Syntax

Data Type Declaration Syntax

Common Language Elements
Expressions

Expressions

Predicates

Conditions

Comparison Predicates
Existential Predicates
Quantified Subquery Predicates

Predicates

Data Definition (DDL) Statements

DATABASE
SHADOW
DOMAIN
TABLE
INDEX
VIEW
TRIGGER
PROCEDURE
FUNCTION
EXTERNAL FUNCTION
PACKAGE
PACKAGE BODY
FILTER
SEQUENCE (GENERATOR)
EXCEPTION
COLLATION
CHARACTER SET
Comments
Data Manipulation (DML) Statements
SELECT

SELECT

INSERT

INSERT

UPDATE

UPDATE

UPDATE OR INSERT

UPDATE OR INSERT

DELETE

DELETE

MERGE

MERGE

EXECUTE PROCEDURE

EXECUTE PROCEDURE

EXECUTE BLOCK

EXECUTE BLOCK

Procedural SQL (PSQL) Statements
Elements of PSQL

Elements of PSQL

Stored Procedures

Stored Procedures

Stored Functions

Stored Functions

PSQL Blocks

Packages

Packages

Triggers

Triggers

Writing the Body Code

Writing the Body Code

Trapping and Handling Errors

Trapping and Handling Errors

Built-in Scalar Functions
Context Functions

Context Functions

Mathematical Functions

Mathematical Functions

String and Binary Functions

String and Binary Functions

Date and Time Functions

Date and Time Functions

Type Casting Functions

Type Casting Functions

Bitwise Functions

Bitwise Functions

UUID Functions

UUID Functions

Functions for Sequences (Generators)

Functions for Sequences (Generators)

Conditional Functions

Conditional Functions

Special Functions for DECFLOAT

Special Functions for DECFLOAT

Cryptographic Functions

Cryptographic Functions

Other Functions

Other Functions

Aggregate Functions
Window (Analytical) Functions
System Packages
Context Variables
Transaction Control

Security

User Authentication
SQL Statements for User Management
SQL Privileges
ROLE
Statements for Granting Privileges
Statements for Revoking Privileges
Mapping of Users to Objects
Database Encryption

SQL Security

Management Statements
Supplementary Information
Exception Codes and Messages
Reserved Words and Keywords
System Tables
Monitoring Tables
Security tables
Plugin tables

Character Sets and Collations

License notice

Document History


ODBC

Firebird ODBC/JDBC Driver 2.0 Manual

ODBC/JDBC Driver for Firebird Client Applications
Installing the Driver
Firebird ODBC Configuration
Connecting to Firebird from Applications
Developing with the Firebird ODBC/JDBC Driver
Firebird Events
The Services Interface

Examples

Licence Notices

Document History


firebird-5-release-notes

Firebird 5.0.1 Release Notes

General Notes
New In Firebird 5.0
Changes in the Firebird Engine
Changes to the Firebird API and ODS
Reserved Words and Changes
Configuration Additions and Changes
Security
Management Statements
Data Definition Language (DDL)
Data Manipulation Language (DML)
Procedural SQL (PSQL)
Monitoring Command-line Utilities
Compatibility Issues
Bugs Fixed

Firebird 5.0 Project Teams

Licence Notice






Firebird gbak Backup and Restore Utility



Firebird isql Interactive SQL Utility

Firebird's isql Interactive SQL Utility
Introduction

Introduction

Overview

Invoking Isql

Commandline Switches

Starting An Isql Session

Ending an Isql Session

Getting Help

Connecting To A Database

Connecting To A Database

Creating A Database

Setting The ISC_USER And ISC_PASSWORD Environment Variables

SQL Dialects

Terminator Character Isql Prompts

Error Handling And Exception Support

Transaction Handling

Script Handling

Isql Commands

Isql Commands

Isql Set Commands

Isql Set Commands

Isql Show commands

Isql Show commands

Document History

License Notice



Firebird Null Guide

Firebird Null Guide: NULL behaviour and pitfalls in Firebird SQL
What is NULL?

What is NULL?

NULL support in Firebird SQL

NULL support in Firebird SQL

NULL in operations

NULL in operations

Internal functions and directives

Internal functions and directives

Predicates

Predicates

Searches

Sorts

Aggregate functions

Aggregate functions

Conditional statements and loops

Conditional statements and loops

Keys and unique indices

Keys and unique indices

CHECK constraints

SELECT DISTINCT

User-Defined Functions (UDFs)

User-Defined Functions (UDFs)

Converting to and from NULL

Converting to and from NULL

Altering populated tables

Altering populated tables

Changing the nullability of a domain

Changing the nullability of a domain

Testing for NULL and equality in practice

Testing for NULL and equality in practice

Summary

NULL-related bugs in Firebird

NULL-related bugs in Firebird

Document history

License notice


Firebird 5 Quick Start Guide

Firebird 5 Quick Start Guide

About this guide

The Firebird licenses

Installing Firebird

Installing Firebird

Default disk locations

Default disk locations

Server configuration and management

Server configuration and management

Working with databases

Working with databases

Protecting your data

Protecting your data

How to get help

How to give help

The Firebird Project

Document History

License notice