You can operate the MaxDB database system in one of the following SQL modes:
· INTERNAL: Database system-internal definition
· ANSI: ANSI standard according to ANSI X3.135-1992, Entry SQL
· DB2: Definition of DB2 Version 4
· ORACLE: Definition of ORACLE7
For more information about the differences between INTERNAL and ORACLE, see the SQL Mode ORACLE documentation. For a detailed explanation of the SQL syntax, see the Reference Manual.
To achieve good performance when executing SQL statements, the database system uses among other things an SQL Optimizer, Shared SQL and Load Balancing.
In the MaxDB database system you can use the following data types among others: BOOLEAN, CHAR[ACTER] (ASCII, BYTE, UNICODE), DATE, FIXED, FLOAT, INT[EGER], LONG (ASCII, BYTE,UNICODE) for saving BLOBs and CLOBs, SMALLINT, TIME, TIMESTAMP, VARCHAR (ASCII, BYTE, UNICODE).
For more information, see the Reference Manual in Data Type (data_type).
Selected SQL features of MaxDB
Name |
SQL Statement |
Foreign key, referential integrity |
Referential CONSTRAINT Definition (referential_constraint_definition) |
Database procedure (Stored Procedures) |
|
Trigger |
|
Updatable view (also JOIN views) |
|
Function |
Function (function_spec), such as arithmetic function, date function, conversion function |
Sub-transaction |
|
Number generator (auto-increment column) |
|
Schema |
|
Sub-SELECT |
|
Outer join |
|
Server-side cursor |
|
Temporary table |
|
Explicit and implicit locks on rows, tables and the database catalog |
LOCK Statement (lock_statement) See also Locks. |
For restrictions, see the Reference Manual, Restrictions for SQL Statements
The following database tools are available for entering SQL statements:
· SQL Studio (GUI, only for Microsoft Windows)
· SQLCLI (command line for all supported operating systems)
· Web SQL Studio (web-based, for all supported operating systems)