Comparison of relational database management systems

The following tables compare general and technical information for a number of relational database management systems. Please see the individual products' articles for further information. This article is not all-inclusive or necessarily up-to-date. Unless otherwise specified in footnotes, comparisons are based on the stable versions without any add-ons, extensions or external programs.

Contents

[hide]

[edit] General information

↓Maintainer↓First public release date↓Latest stable version↓Latest release date↓Software license↓
4D (4th Dimension)4D s.a.s1984v12.2 SQL Proprietary
ADABASSoftware AG19708.1 Proprietary
Adaptive Server EnterpriseSybase198715.5 Proprietary
Advantage Database Server (ADS)Sybase199210.12010-12Proprietary
AltibaseAltibase Corp.[1]2000-075.1.1 Proprietary
Apache DerbyApache200410.8.1.22011-05-02Apache License
CUBRIDNHN Corporation[2]2008-118.4.02011-05-12GPL v2
DatacomCA, Inc.?11.2 Proprietary
DB2IBM19839.72009-04-22Proprietary
DrizzleBrian Aker2008Build 1126 BSD, GPL v2
Empress Embedded DatabaseEmpress Software Inc[3]197910.202010-03Proprietary
FileMakerFileMaker[4]198411.02010-03Proprietary
FirebirdFirebird project[5]2000-07-252.52010-10-04IPL[6] and IDPL[7]
FrontBaseFrontBase, Inc[8]19965.1.22010-01Proprietary
HSQLDBHSQL Development Group20012.2.52011-07BSD
H2H2 Software20051.3.1542011-04-04EPL and modified MPL
Informix Dynamic ServerIBM198011.70.xC22011-03-28Proprietary
IngresIngres Corp.1974Ingres Database 102010-10-12GPL and Proprietary
InterBaseEmbarcadero1984InterBase XE2010-09-21Proprietary
Linter SQL RDBMSRELEX Group19906.x Proprietary
LucidDBThe Eigenbase Project[9]2007-010.9.3 GPL v2
MaxDBSAP AG2003-057.62008-01Proprietary
Microsoft Access (JET)Microsoft199214 (2010) Proprietary
Microsoft Visual FoxproMicrosoft1984[10]9 (2005)2007-10-11[10]Proprietary
Microsoft SQL ServerMicrosoft19892008 R2 (v10.5) Proprietary
Microsoft SQL Server Compact (Embedded Database)Microsoft20002010 (v3.5 SP2) Proprietary
MonetDBThe MonetDB Developer Team20045.222010-10MonetDB Public License v1.1[11]
mSQLHughes Technologies19943.8[12]2006-06-09Proprietary
MySQLSun Microsystems (now Oracle Corporation)1995-115.5.82010-12-15GPL or Proprietary
NavibaseNaviworx20091.0.02010-11-02Proprietary
NexusdbNexus Database Systems Pty Ltd[13]2003-093.042010-05-08Proprietary
HP NonStop SQLHewlett-Packard1987SQL/MX 2.3 Proprietary
Omnis StudioTigerLogic Inc[14]1982-074.3.1 Release 1no2008-05Proprietary
OpenBase SQLOpenBase International[15]199111.0.0 Proprietary
OracleOracle Corporation1979-1111g Release 22009-09Proprietary
Oracle RdbOracle Corporation19847.2.5.02011-06-20[16]Proprietary
OpenEdgeProgress Software Corporation198410.2B Proprietary
OpenLink VirtuosoOpenLink Software[17]19986.22010-09GPL or Proprietary
ParadoxCorel Corporation[18]1985112003Proprietary
Pervasive PSQLPervasive Software1982112010-09Proprietary
Polyhedra DBMSENEA AB19938.42010-12Proprietary
PostgreSQLPostgreSQL Global Development Group[19]1989-069.0.4[20]2011-04-18PostgreSQL licence (Free and Open Source)[21]
R:BaseR:BASE Technologies[22]19827.6 Proprietary
RDM EmbeddedRaima Inc.[23]198410 Proprietary
RDM ServerRaima Inc.[23]19908.3 Proprietary
ScimoreDBScimore[24]20053.02008-03-03Proprietary
SmallSQLSmallSQL2005-04-160.202008-12LGPL
SQL AnywhereSybase199212.02010-07-09Proprietary
SQLBaseUnify Corp.[25]198211.52008-11Proprietary
SQLiteD. Richard Hipp2000-08-173.7.6.32011-05-19[26]Public domain
SuperbaseSuperbase1984Scientific (2004) Proprietary
TeradataTeradata198413.10 Proprietary
UniDataRocket Software19887.2.102011-04Proprietary
UniVerseRocket Software198511.1.32011-06Proprietary

[edit] Timeline

Timeline of the development of major RDBMS software:

RDBMS timeline-2.svg

[edit] Operating system support

The operating systems the RDBMSes can run on.

↓Windows↓Mac OS X↓Linux↓BSD↓UNIX↓AmigaOS↓Symbian↓z/OS1↓
4th Dimension Yes Yes No No No No No No
ADABAS Yes No Yes No Yes No No Yes
Adaptive Server Enterprise Yes No Yes Yes Yes No No No
Advantage Database Server Yes No Yes No No No No No
Altibase Yes No Yes No Yes No No No
Apache Derby2 Yes Yes Yes Yes Yes No No Yes
CUBRID Yes Partial10 Yes No No No No No
Drizzle No Yes Yes Yes Yes No No No
DB25 Yes Yes (Express C) Yes No Yes No No Yes
Empress Embedded Database Yes Yes Yes Yes Yes No No No
Firebird Yes Yes Yes Yes Yes No No Maybe
HSQLDB2 Yes Yes Yes Yes Yes No No Yes
H22 Yes Yes Yes Yes Yes No No Yes
FileMaker Yes Yes No No No No No No
Informix Dynamic Server Yes Yes Yes Yes Yes No No Yes
Ingres Yes Yes Yes Yes Yes No No Partial
InterBase Yes Yes Yes No Yes (Solaris) No No No
Linter SQL RDBMS6 Yes Yes Yes Yes Yes6 No No No
LucidDB Yes Yes Yes No No No No No
MaxDB Yes No Yes No Yes No No Maybe
Microsoft Access (JET) Yes No No No No No No No
Microsoft Visual Foxpro Yes No No No No No No No
Microsoft SQL Server Yes No No No No No No No
Microsoft SQL Server Compact (Embedded Database) Yes No No No No No No No
MonetDB Yes Yes Yes No Yes No No No
MySQL8 Yes Yes Yes Yes Yes Yes Yes Yes
Navibase Partial Yes Partial Partial No No No No
Omnis Studio Yes Yes Yes No No No No No
OpenBase SQL Yes Yes Yes Yes Yes No No No
Oracle4 Yes Yes Yes No Yes No No Yes
Oracle Rdb3 No No No No No No No
OpenEdge Yes No Yes No Yes No No No
OpenLink Virtuoso Yes Yes Yes Yes Yes No No Yes
Pervasive PSQL Yes Yes (OEM only) Yes No No No No No
Polyhedra7 Yes No Yes No Yes No No No
PostgreSQL Yes Yes Yes Yes Yes No No No
R:Base Yes No No No No No No No
RDM Embedded Yes Yes Yes Yes Yes No No No
RDM Server Yes Yes Yes Yes Yes No No No
ScimoreDB Yes No No No No No No No
SmallSQL2 Yes Yes Yes Yes Yes No No Yes
SQL Anywhere Yes Yes Yes No Yes No No No
SQLBase Yes No Yes No No No No No
SQLite Yes Yes Yes Yes Yes Yes Yes Maybe
Superbase Yes No No No No Yes No No
Teradata Yes No Yes No Yes No No No
UniData Yes No Yes No Yes No No No
UniVerse Yes No Yes No Yes No No No

Note (1): Open source databases listed as UNIX-compatible will likely compile and run under z/OS’s built-in UNIX System Services (USS) subsystem. Most databases listed as Linux-compatible can run alongside z/OS on the same server using Linux on zSeries.

Note (2): The database availability depends on Java Virtual Machine not on the operating system

Note (3): Oracle Rdb was originally developed by DEC, and runs on OpenVMS

Note (4): Oracle database 11g also runs on OpenVMS, HP/UX and AIX. Mac OS X is limited to 10gR2. 10g also supported BS2000/OSD and z/OS (31-bit), but that support has been discontinued in 11g. Earlier versions than 10g were available on a wide variety of platforms.

Note (5): DB2 is also available for i5/OS, z/VM, z/VSE. Previous versions were also available for OS/2.

Note (6): Linter SQL RDBMS also runs on OpenVMS, Solaris, QNX, OS9000 and OS9.

Note (7): Polyhedra also runs on AIX, OSE, Solaris, LynxOS and VxWorks. Previous versions also ran on Ultrix, VMS and pSOS. Source code kits allow customers to port to other platforms.

Note (8): MySQL also runs on Solaris, Opensolaris, and can be made from source on other platforms as well.

Note (9): Binaries are not yet available for Mac OS X and BSD.

Note (10): CUBRID provides a client interface of its RDBMS for Mac OS X called the CUBRID Manager, which can be used for remote CUBRID connection.

[edit] Fundamental features

Information about what fundamental RDBMS features are implemented natively.

MySQL InnoDB is ACID compliant

↓ACID↓Referential integrity↓Transactions↓Unicode↓Interface↓
4th Dimension Yes Yes Yes YesGUI & SQL
ADABAS Yes No Yes Yesproprietary direct call & SQL (via 3rd party)
Adaptive Server Enterprise Yes Yes Yes YesSQL
Advantage Database Server Yes Yes Yes Yes3API & SQL
Altibase Yes Yes Yes?SQL
Apache Derby Yes Yes Yes YesSQL
CUBRID Yes Yes Yes YesGUI & SQL
Drizzle Yes Yes Yes YesSQL
DB2 Yes Yes Yes YesGUI & SQL
Empress Embedded Database Yes Yes Yes YesAPI & SQL
Firebird Yes Yes Yes YesSQL
HSQLDB Yes Yes Yes YesSQL
H2 Yes Yes Yes YesSQL
Informix Dynamic Server Yes Yes Yes YesSQL
Ingres Yes Yes Yes YesSQL & QUEL
InterBase Yes Yes Yes YesSQL
Linter SQL RDBMS Yes Yes Yes YesGUI & SQL
LucidDB Yes No No YesSQL
MaxDB Yes Yes Yes YesSQL
Microsoft Access (JET) Yes Yes Yes YesGUI & SQL
Microsoft Visual FoxPro No Yes Yes NoGUI & SQL
Microsoft SQL Server Yes Yes Yes YesGUI & SQL
Microsoft SQL Server Compact (Embedded Database) Yes Yes Yes YesGUI & SQL
MonetDB Yes Yes Yes Yes?
MySQL Yes2 Yes2 Yes2 except for DDL [27] YesSQL
Navibase Yes Yes Yes YesAPI & GUI & SQL
OpenBase SQL Yes Yes Yes YesGUI & SQL
Oracle Yes Yes Yes except for DDL [27] YesAPI & GUI & SQL
Oracle Rdb Yes Yes Yes YesSQL
OpenLink Virtuoso Yes Yes Yes YesAPI & GUI & SQL
Polyhedra DBMS Yes Yes Yes YesSQL
PostgreSQL Yes Yes Yes YesGUI & SQL
RDM Embedded Yes Yes Yes YesSQL & API
RDM Server Yes Yes Yes YesSQL & API
ScimoreDB Yes Yes Yes PartialSQL
SQL Anywhere Yes Yes Yes YesSQL
SQLBase Yes Yes Yes YesAPI & GUI & SQL
SQLite Yes Yes Yes Optional[28]SQL
Teradata Yes Yes Yes YesSQL
UniData Yes No Yes YesMultiple
UniVerse Yes No Yes YesMultiple
 ACIDReferential integrityTransactionsUnicodeInterface

Note (1): Currently only supports read uncommited transaction isolation. Version 1.9 adds serializable isolation and version 2.0 will be fully ACID compliant.

Note (2): For ACID compliance with MySQL, the InnoDB storage engine must be chosen.[29][30]

Note (3): Support for Unicode is new in version 10.0.

[edit] Limits

Information about data size limits.

↓Max DB size↓Max table size↓Max row size↓Max columns per row↓Max Blob/Clob size↓Max CHAR size↓Max NUMBER size↓Min DATE value↓Max DATE value↓Max column name size↓
4th Dimensionlimited ? ?65135200 GB (2 GiB Unicode)200 GB (2 GiB Unicode)64 bits ? ? ?
Advantage Database ServerUnlimited16 EiB65530 B65135 / (10+ AvgFieldNameLength)4 GiB ?64 bits ? ?128
Apache DerbyUnlimitedUnlimitedUnlimited1012 (5000 in views)2 147 483 647 chars254 (VARCHAR: 32672) ?0001-01-019999-12-31128
CUBRID2 EB2 EBUnlimited6400Unlimited1 GB64 bits0001-01-019999-12-31254
DrizzleUnlimited64 TB8 kB10004 GB (longtext, longblob)64 kB (text)64 bits0001999964
DB2512 TiB512 TB32 677 B10122 GB32 KiB)64 bits00019999128
Empress Embedded DatabaseUnlimited263-1 bytes2 GB327672 GB2 GB64 bits0000-01-019999-12-3132
FirebirdUnlimited1~32 TB65 536 BDepends on data types used.2 GB32 767 B64 bits1003276831
HSQLDB64 TBUnlimited8Unlimited8Unlimited864 TB7Unlimited8Unlimited80001-01-019999-12-31128
H264 TBUnlimited8Unlimited8Unlimited864 TB7Unlimited864 bits-9999999999999999Unlimited8
Informix Dynamic Server~128 PB~128 PB32 765 bytes (exclusive of large objects)327654 TB32765103201/01/00011012/31/9999128 bytes
IngresUnlimitedUnlimited256 kB10242 GB32 000 B64 bits0001999932
InterBaseUnlimited1~32 TB65 536 BDepends on data types used.2 GB32 767 B64 bits1003276831
Linter SQL RDBMSUnlimited230 rows64 kB (w/o BLOBs), 4 GB (BLOB)2504 GB4 kB64 bits0001-01-012099-12-31128
Microsoft Access (JET)2 GB2 GB16 MB25564 kB (memo field), 1 GB ("OLE Object" field)255 B (text field)32 bits0100999964
Microsoft Visual FoxproUnlimited2 GB65 500 B2552 GB16 MB32 bits00019999 ?
Microsoft SQL Server524 258 TB (32 767 files * 16 TB max file size)524 258 TBUnlimited300002 GB2 GB6126 bits200019999128
Microsoft SQL Server Compact (Embedded Database)4 GB4 GB8060 bytes1024500 MB4000126 bits 200019999128
MySQL 5UnlimitedMyISAM storage limits: 256 TB; Innodb storage limits: 64 TB64 kB3409644 GB (longtext, longblob)64 kB (text)64 bits1000999964
OracleUnlimited (4 GB * block size per tablespace)4 GB * block size (with BIGFILE tablespace)8 kB1000Unlimited4000 B126 bits-4712999930
PolyhedraLimited by available RAM, address space232 rowsUnlimited655364 GB (subject to RAM)4 GB (subject to RAM)32 bits0001-01-018000-12-31255
PostgreSQLUnlimited32 TB1.6 TB250-1600 depending on type1 GB (text, bytea) - stored inline or 2 GB (stored in pg_largeobject)1 GBUnlimited-4713587489763
ScimoreDBUnlimited16 EB8050 B25516 TB8000 B64 bits ? ? ?
SQL Anywhere104 TB (13 files, each file up to 8 TB (32k pages))Limited by file sizeLimited by file size450002 GB2 GB64 bits0001-01-019999-12-31 ?
SQLite32 TB (230 pages * 32 kB max page size) ? ?327671 GB1 GB64 bitsNo DATE type9No DATE type9 ?
TeradataUnlimitedUnlimited64 kB wo/lobs (64 GB w/lobs)20482 GB10 00064 bits ?9999-12-31 Select 80991231 (date);30
UniVerseUnlimitedUnlimitedUnlimitedUnlimitedUnlimitedUnlimitedUnlimitedUnlimitedUnlimitedUnlimited
 Max DB sizeMax table sizeMax row sizeMax columns per rowMax Blob/Clob sizeMax CHAR sizeMax NUMBER sizeMin DATE valueMax DATE valueMax column name size

Note (1): Firebird 2.x maximum database size is effectively unlimited with the largest known database size >980 GB.[31] Firebird 1.5.x maximum database size: 32 TB.

Note (2): limit is 1038using DECIMAL datatype[32]

Note (3): InnoDB is limited to 8,000 bytes (excluding VARBINARY, VARCHAR, BLOB, or TEXT columns)[33]

Note (4): InnoDB is limited to 1,000 columns[33]

Note (6): Using VARCHAR (MAX) in SQL 2005 and later

Note (7): When using a page size of 32 kB, and when BLOB/CLOB data is stored in the database file.

Note (8): Java array size limit of 2,147,483,648 (231) objects per array applies. This limit applies to number of characters in names, rows per table, columns per table, and characters per CHAR/VARCHAR.

Note (9): Despite the lack of a date datatype, SQLite does include date and time functions,[34] which work for timestamps between 0000-01-01 00:00:00 and 5352-11-01 10:52:47.

Note (10): Informix DATETIME type has adjustable range from YEAR only through 1/10000th second. DATETIME date range is 0001-01-01 00:00:00.00000 through 9999-12-31 23:59:59.99999.

[edit] Tables and views

Information about what tables and views (other than basic ones) are supported natively.

↓Temporary table↓Materialized view↓
4th Dimension YesPlanned for inclusion in next major release
ADABAS??
Adaptive Server Enterprise Yes1 No
Advantage Database Server Yes No (only common views)
Altibase Yes Yes
Apache Derby Yes No
CUBRID No No
Drizzle Yes No4
DB2 Yes Yes
Empress Embedded Database Yes Yes
Firebird Yes No (only common views)
HSQLDB Yes No
H2 Yes No
Informix Dynamic Server Yes No2
Ingres YesPlanned for inclusion in next major release
InterBase Yes No
Linter SQL RDBMS Yes No
LucidDB No No
MaxDB Yes No
Microsoft Access (JET) No No
Microsoft Visual Foxpro Yes Yes
Microsoft SQL Server Yes Yes3
Microsoft SQL Server Compact (Embedded Database) Yes No
MonetDB Yes No
MySQL Yes No4
OpenBase SQL Yes Yes
Oracle Yes Yes
Oracle Rdb Yes Yes
OpenLink Virtuoso Yes Yes
Polyhedra DBMS No No (only common views)
PostgreSQL Yes No5
SQL Anywhere Yes Yes
ScimoreDB No No
SQLite Yes No
Teradata Yes Yes
UniData Yes No
UniVerse Yes No

Note (1): Server provides tempdb, which can be used for public and private (for the session) temp tables.[35]

Note (2): Materialized views are not supported in Informix; the term is used in IBM’s documentation to refer to a temporary table created to run the view’s query when it is too complex, but one cannot for example define the way it is refreshed or build an index on it. The term is defined in the Informix Performance Guide.[36]

Note (3): Query optimizer support only in Developer and Enterprise Editions. In other versions, a direct reference to materialized view and a query hint are required.[37]

Note (4): Materialized views can be emulated using stored procedures and triggers.[38]

Note (5): Materialized views can be emulated with stored procedures and triggers using PL/pgSQL, PL/Perl, PL/Python, or other procedural languages.[39]

[edit] Indexes

Information about what indexes (other than basic B-/B+ tree indexes) are supported natively.

↓R-/R+ tree↓Hash↓Expression↓Partial↓Reverse↓Bitmap↓GiST↓GIN↓Full-text↓Spatial↓FOT↓
4th Dimension?Cluster????????
ADABAS??????????
Adaptive Server Enterprise No No Yes No Yes No No No Yes?
Advantage Database Server No No Yes No Yes Yes No No Yes?
Apache Derby No No No No No No No No No[40]?
CUBRID No No No No Yes No No No??
Drizzle No No No No No No No No No?
DB2 No? Yes No Yes Yes No No Yes[41]?
Empress Embedded Database Yes No No Yes No Yes No No No?
Firebird No No Yes No Yes 1 No No No No[42]?
HSQLDB No No No No No No No No No?
H2 No Yes No No No No No No Yes[43]?
Informix Dynamic Server Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Ingres Yes Yes Ingres v10 No No Ingres v10 No No No?
InterBase No No No No No No No No No?
Linter SQL RDBMS10 No No No No No No No No Yes[44]?
LucidDB No No No No No Yes No No No?
MaxDB No No No No No No No No No?
Microsoft Access (JET) No No No No No No No No No[45]?
Microsoft Visual Foxpro No No Yes Yes Yes2 Yes No No No?
Microsoft SQL Server?Non/Cluster & fill factor Yes3 Yes4 No3 No No No Yes[46] Yes[47]
Microsoft SQL Server Compact (Embedded Database) No No No No No No No No No[48]?
MonetDB No Yes No No No No No No??
MySQLMyISAM tables onlyMEMORY, Cluster (NDB), InnoDB,5 tables only No[49] No No No No NoMyISAM tables only[50]?
Oracle Yes 11Cluster Tables Yes Yes 6 Yes Yes No No Yes[51] Yes[52]
Oracle Rdb No Yes? No No? No No??
OpenLink Virtuoso YesCluster Yes No No Yes No No Yes?
Polyhedra DBMS No Yes No No No No No No??
PostgreSQL Yes Yes Yes Yes Yes7 Yes8 Yes Yes Yes[53]Postgis[54]
ScimoreDB No No No No No No No No Yes[55]?
SQL Anywhere No No No No No No No No Yes?
SQLite Yes No No No Yes No No No Yes[56]SpatiaLite[57]
Teradata No Yes Yes Yes No Yes No No?[58]?
UniVerse Yes Yes Yes3 Yes3 Yes3 No No No??
 R-/R+ treeHashExpressionPartialReverseBitmapGiSTGINFull-textSpatial

Note (1): The users need to use a function from freeAdhocUDF library or similar.[59]

Note (2): Can be implemented for most data types using expression-based indexes.

Note (3): Can be emulated by indexing a computed column[60] (doesn't easily update) or by using an "Indexed View"[61] (proper name not just any view works[62])

Note (4): Can be implemented by using an indexed view.[63]

Note (5): InnoDB automatically generates adaptive hash index[64] entries as needed.

Note (6): Can be implemented using Function-based Indexes in Oracle 8i and higher, but the function needs to be used in the sql for the index to be used.

Note (7): A PostgreSQL functional index can be used to reverse the order of a field.

Note (8): PostgreSQL will likely support on-disk bitmap indexes in a future version. Version 8.2 supports a related technique known as "in-memory bitmap scans".

Note (10): B+ tree and full-text only for now.

Note (11): R-Tree indexing available in base edition with Locator but some functionality requires Personal Edition or Enterprise Edition with Spatial option

[edit] Database capabilities

↓Union↓Intersect↓Except↓Inner joins↓Outer joins↓Inner selects↓Merge joins↓Blobs and Clobs↓Common Table Expressions↓Windowing Functions↓Parallel Query↓
4th Dimension Yes Yes Yes Yes Yes No No Yes???
ADABAS Yes??????????
Adaptive Server Enterprise Yes?? Yes Yes Yes Yes Yes?? Yes
Advantage Database Server Yes No No Yes Yes Yes Yes Yes? No?
Altibase Yes?? Yes Yes Yes Yes Yes???
Apache Derby Yes Yes Yes Yes Yes?? Yes No No?
CUBRID Yes Yes Yes Yes Yes Yes Yes Yes No No?
Drizzle Yes No No Yes Yes Yes No Yes No No No[65]
DB2 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes[66]
Empress Embedded Database Yes Yes Yes Yes Yes Yes Yes Yes???
Firebird Yes?? Yes Yes Yes Yes Yes Yes Yes?
HSQLDB Yes Yes Yes Yes Yes Yes No Yes Yes No No
H2 Yes Yes Yes Yes Yes Yes No Yesexperimental[67] No[68]?
Informix Dynamic Server Yes? Yes, via MINUS Yes Yes Yes Yes Yes Yes? Yes[69]
Ingres Yes No No Yes Yes Yes Yes Yes No No?
InterBase Yes?? Yes Yes?? Yes???
Linter SQL RDBMS Yes Yes Yes Yes Yes Yes Yes Yes No Yes?
LucidDB Yes Yes Yes Yes Yes Yes Yes No???
MaxDB Yes?? Yes Yes Yes No Yes???
Microsoft Access (JET) Yes No No Yes Yes Yes No Yes No No?
Microsoft Visual Foxpro Yes?? Yes Yes Yes? Yes???
Microsoft SQL Server Yes Yes (2005 and beyond) Yes (2005 and beyond) Yes Yes Yes Yes Yes Yes Yes Yes[70]
Microsoft SQL Server Compact (Embedded Database) Yes No No Yes Yes? No Yes No No?
MonetDB???????????
MySQL Yes No No Yes Yes Yes No Yes No[71] No No[72]
OpenBase SQL No No No Yes Yes Yes Yes Yes???
Oracle Yes Yes Yes, via MINUS Yes Yes Yes Yes Yes Yes 1 Yes Yes[73]
Oracle Rdb Yes?? Yes Yes Yes Yes Yes???
OpenLink Virtuoso Yes?? Yes Yes Yes? Yes???
Polyhedra DBMS Yes Yes Yes Yes No?? Yes???
PostgreSQL Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No[74]
ScimoreDB Yes?? Yes LEFT only Yes Yes Yes???
SmallSQL???????????
SQL Anywhere Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes?
SQLite Yes Yes Yes Yes LEFT only Yes? Yes No No?
Teradata Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes
UniVerse Yes Yes Yes Yes Yes Yes Yes No No No?
 UnionIntersectExceptInner joinsOuter joinsInner selectsMerge joinsBlobs and ClobsCommon Table ExpressionsWindowing FunctionsParallel Query

Note (1): Recursive CTEs introduced in 11gR2 supersedes similar construct called CONNECT BY

[edit] Data types

↓Type system↓Integer↓Floating point↓Decimal↓String↓Binary↓Date/Time↓Boolean↓Other↓
CUBRID[75]StaticSMALLINT (16-bit), INTEGER (32-bit), BIGINT (64-bit)FLOAT, REAL(32-bit), DOUBLE(64-bit)DECIMAL, NUMERICCHAR, VARCHAR, NCHAR, NVARCHAR, CLOBBLOBDATE, DATETIME, TIME, TIMESTAMPBITMONETARY, BIT VARYING, SET, MULTISET, SEQUENCE
Drizzle[76]StaticINT (32-bit), BIGINT (64-bit)DOUBLE (aka REAL) (64-bit)DECIMALBINARY, VARCHAR, VARBINARY, TEXT,BLOBDATETIME, DATE, TIMESTAMP ENUM, SERIAL
Empress Embedded DatabaseStaticTINYINT, SQL_TINYINT or INTEGER8

SMALLINT, SQL_SMALLINT or INTEGER16 INTEGER, INT, SQL_INTEGER or INTEGER32 BIGINT, SQL_BIGINT or INTEGER64

REAL, SQL_REAL or FLOAT32

DOUBLE PRECISION, SQL_DOUBLE or FLOAT64 FLOAT or SQL_FLOAT EFLOAT

DECIMAL, DEC, NUMERIC, SQL_DECIMAL or SQL_NUMERIC

DOLLAR

CHARACTER,

ECHARACTER, CHARACTER VARYING, NATIONAL CHARACTER, NATIONAL CHARACTER VARYING and NLSCHARACTER

CHARACTER LARGE OBJECT, TEXT, NATIONAL CHARACTER LARGE OBJECT, and NLSTEXT

BINARY LARGE OBJECT or BLOB

BULK

DATE,

EDATE, TIME, ETIME, EPOCH_TIME, TIMESTAMP, MICROTIMESTAMP

BOOLEANSEQUENCE 32

SEQUENCE

HSQLDB[77]StaticTINYINT (8-bit), SMALLINT (16-bit), INTEGER (32-bit), BIGINT (64-bit)DOUBLE (64-bit)DECIMAL, NUMERICCHAR, VARCHAR, LONGVARCHAR, CLOBBINARY, VARBINARY, LONGVARBINARY, BLOBDATE, TIME, TIMESTAMP, INTERVALBOOLEANOTHER (object), BIT, BIT VARYING, ARRAY
Informix Dynamic Server[78]StaticSMALLINT (16-bit), INT (32-bit), INT8 (64-bit proprietary), BIGINT (64-bit)SMALLFLOAT (32-bit), FLOAT (64-bit)DECIMAL (32 digits float/fixed), MONEYCHAR, VARCHAR, NCHAR, NVARCHAR, LVARCHAR, CLOB, TEXTTEXT, BYTE, BLOB, CLOBDATE, DATETIME, INTERVALBOOLEANSET, LIST, MULTISET, ROW, TIMESERIES, SPATIAL, USER DEFINED TYPES
Ingres[79]StaticTINYINT (8-bit), SMALLINT (16-bit), INTEGER (32-bit), BIGINT (64-bit)FLOAT4 (32-bit), FLOAT (64-bit)DECIMALC, CHAR, VARCHAR, LONG VARCHAR, NCHAR, NVARCHAR, LONG NVARCHAR, TEXTBYTE, VARBYTE, LONG VARBYTE (BLOB)DATE, ANSIDATE, INGRESDATE, TIME, TIMESTAMP, INTERVALN/AMONEY, OBJECT_KEY, TABLE_KEY, USER-DEFINED DATA TYPES (via OME)
Microsoft SQL Server[80]StaticTINYINT, SMALLINT, INT, BIGINTFLOAT, REALNUMERIC, DECIMAL, SMALLMONEY, MONEYCHAR, VARCHAR, TEXT, NCHAR, NVARCHAR, NTEXTBINARY, VARBINARY, IMAGE, FILESTREAMDATE, DATETIMEOFFSET, DATETIME2, SMALLDATETIME, DATETIME, TIMEBITCURSOR, TIMESTAMP, HIERARCHYID, UNIQUEIDENTIFIER, SQL_VARIANT, XML, TABLE
Microsoft SQL Server Compact (Embedded Database)[81]StaticTINYINT, SMALLINT, INT, BIGINTFLOAT, REALNUMERIC, DECIMAL, MONEYNCHAR, NVARCHAR, NTEXTBINARY, VARBINARY, IMAGEDATETIMEBITTIMESTAMP, ROWVERSION, UNIQUEIDENTIFIER, IDENTITY, ROWGUIDCOL
MySQL[82]StaticTINYINT (8-bit), SMALLINT (16-bit), MEDIUMINT (24-bit), INT (32-bit), BIGINT (64-bit)FLOAT (32-bit), DOUBLE (aka REAL) (64-bit)DECIMALCHAR, BINARY, VARCHAR, VARBINARY, TEXT, TINYTEXT, MEDIUMTEXT, LONGTEXTTINYBLOB, BLOB, MEDIUMBLOB, LONGBLOBDATETIME, DATE, TIMESTAMP, YEARBOOLEAN (aka BOOL) = synonym for TINYINTENUM, SET, GIS data types (Geometry, Point, Curve, LineString, Surface, Polygon, GeometryCollection, MultiPoint, MultiCurve, MultiLineString, MultiSurface, MultiPolygon)
Oracle[83]Static + Dynamic (through ANYDATA)NUMBERBINARY_FLOAT, BINARY_DOUBLENUMBERCHAR, VARCHAR2, CLOB, NCLOB, NVARCHAR2, NCHARBLOB, RAW, LONGRAW, BFILEDATE, TIMESTAMP (with/without TIMEZONE), INTERVALN/ASPATIAL, IMAGE, AUDIO, VIDEO, DICOM, XMLType
PolyhedraStaticINTEGER8 (8-bit), INTEGER(16-bit), INTEGER (32-bit)FLOAT32 (32-bit), FLOAT (aka REAL; 64-bit)N/AVARCHAR, LARGE VARCHAR (aka CHARACTER LARGE OBJECT)LARGE BINARY (aka BINARY LARGE OBJECT)DATETIMEBOOLEANN/A
PostgreSQL[84]StaticSMALLINT (16-bit), INTEGER (32-bit), BIGINT (64-bit)REAL (32-bit), DOUBLE PRECISION (64-bit)DECIMAL, NUMERICCHAR, VARCHAR, TEXTBYTEADATE, TIME (with/without TIMEZONE), TIMESTAMP (with/without TIMEZONE), INTERVALBOOLEANENUM, POINT, LINE, LSEG, BOX, PATH, POLYGON, CIRCLE, CIDR, INET, MACADDR, BIT, UUID, XML, arrays
SQLite[85]DynamicINTEGER (64-bit)REAL (aka FLOAT, DOUBLE) (64-bit)N/ATEXT (aka CHAR, CLOB)BLOBN/AN/AN/A
UniDataDynamicN/AN/AN/AN/AN/AN/AN/AN/A
UniVerseDynamicN/AN/AN/AN/AN/AN/AN/AN/A
 Type systemIntegerFloating pointDecimalStringBinaryDate/TimeBooleanOther

[edit] Other objects

Information about what other objects are supported natively.

↓Data Domain↓Cursor↓Trigger↓Function 1↓Procedure 1↓External routine 1↓
4th Dimension Yes No Yes Yes Yes Yes
ADABAS? Yes? Yes? Yes??
Adaptive Server Enterprise Yes Yes Yes Yes Yes Yes
Advantage Database Server Yes Yes Yes Yes Yes Yes
Apache Derby No Yes Yes Yes 2 Yes 2 Yes 2
CUBRID Yes Yes Yes Yes Yes 2 Yes
Drizzle Yes Yes Yes 4 Yes 4 Yes 4 Yes 4
Empress Embedded Database Yes via RANGE CHECK Yes Yes Yes Yes Yes
DB2 Yes via CHECK CONSTRAINT Yes Yes Yes Yes Yes
Firebird Yes Yes Yes Yes Yes Yes
HSQLDB Yes No Yes Yes Yes Yes
H2 Yes No Yes 2 Yes 2 Yes 2 Yes
Informix Dynamic Server Yes via CHECK Yes Yes Yes Yes Yes
Ingres Yes Yes Yes Yes Yes Yes
InterBase Yes Yes Yes Yes Yes Yes
Linter SQL RDBMS No Yes Yes Yes Yes No
LucidDB No Yes No Yes 2 Yes 2 Yes 2
MaxDB Yes Yes Yes Yes Yes?
Microsoft Access (JET) Yes No No No Yes, But single DML/DDL Operation Yes
Microsoft Visual Foxpro No Yes Yes Yes Yes Yes
Microsoft SQL Server Yes (2000 and beyond) Yes Yes Yes Yes Yes
Microsoft SQL Server Compact (Embedded Database) No Yes No No No No
MonetDB No No Yes Yes Yes Yes
MySQL No  3 Yes Yes Yes Yes Yes
OpenBase SQL Yes Yes Yes Yes Yes Yes
Oracle Yes Yes Yes Yes Yes Yes
Oracle Rdb Yes Yes Yes Yes Yes Yes
OpenLink Virtuoso Yes Yes Yes Yes Yes Yes
Polyhedra DBMS No No Yes Yes Yes Yes
PostgreSQL Yes Yes Yes Yes Yes Yes
ScimoreDB No No No No Yes Yes
SQL Anywhere Yes Yes Yes Yes Yes Yes
SQLite No No Yes No No Yes
Teradata No Yes Yes Yes Yes Yes
UniData No No Yes Yes Yes Yes
UniVerse No No Yes Yes Yes Yes
 Data DomainCursorTriggerFunction 1Procedure 1External routine 1

Note (1): Both function and procedure refer to internal routines written in SQL and/or procedural language like PL/SQL. External routine refers to the one written in the host languages, such as C, Java, Cobol, etc. "Stored procedure" is a commonly used term for these routine types. However, its definition varies between different database vendors.

Note (2): In Derby, H2, LucidDB, and CUBRID, users code functions and procedures in Java.

Note (3): ENUM datatype exist. CHECK clause is parsed, but not enforced in runtime.

Note (4): In Drizzle the user codes functions and procedures in C++.

[edit] Partitioning

Information about what partitioning methods are supported natively.

↓Range↓Hash↓Composite (Range+Hash)↓List↓Native Replication API↓
4th Dimension?????
ADABAS?????
Adaptive Server Enterprise Yes Yes No Yes?
Advantage Database Server No No No No Yes
Apache Derby No No No No?
CUBRID Yes Yes No Yes?
IBM DB2 Yes Yes Yes Yes?
Empress Embedded Database No No No No Yes
Firebird No No No No No
HSQLDB No No No No No
H2 No No No No No
Informix Dynamic Server Yes Yes Yes Yes Yes
Ingres Yes Yes Yes Yes No
InterBase No No No No Yes
Linter SQL RDBMS No No No No No
MaxDB No No No No?
Microsoft Access (JET) No No No No Yes
Microsoft Visual Foxpro No No No No No
Microsoft SQL Server Yes No No No?
Microsoft SQL Server Compact (Embedded Database) No No No No Yes
MonetDB Yes (M5) Yes (M5) Yes (M5) No?
MySQL Yes Yes Yes Yes?
OpenBase SQL?????
Oracle Yes Yes Yes Yes?
Oracle Rdb Yes Yes???
OpenLink Virtuoso Yes No No No?
Polyhedra DBMS No No No No No
PostgreSQL Yes1 Yes1 Yes1 Yes1?
ScimoreDB No Yes No No Yes
SQL Anywhere No No No No?
SQLite No No No No?
Teradata Yes Yes Yes Yes?
UniVerse Yes Yes Yes Yes Yes
 RangeHashComposite (Range+Hash)ListNative Replication API

Note (1): PostgreSQL 8.1 provides partitioning support through check constraints. Range, List and Hash methods can be emulated with PL/pgSQL or other procedural languages.[86]

[edit] Access control

Information about access control functionalities (work in progress).

↓Native network encryption1↓Brute-force protection↓Enterprise directory compatibility↓Password complexity rules2↓Patch access3↓Run unprivileged4↓Audit↓Resource limit↓Separation of duties (RBAC)5↓Security Certification↓
Adaptive Server Enterprise Yes (optional; to pay) Yes Yes (optional ?) Yes Partial (need to register; depend on which product)[87] Yes Yes Yes Yes Yes (EAL4+ 1)
Advantage Database Server Yes No No No? Yes No No Yes?
DB2 Yes? Yes (LDAP, Kerberos…) Yes? Yes Yes Yes Yes Yes (EAL4+6)
Empress Embedded Database?? No No Yes Yes Yes No Yes No
Firebird No Yes[88] Yes (Windows trusted authenification) No Partial (no security page)[89] Yes No No No7?
HSQLDB Yes No No No Yes Yes No No Yes No
H2 Yes Yes? No? Yes? Yes Yes No
Informix Dynamic Server Yes? Yes10?10 Yes Yes Yes Yes Yes?
Linter SQL RDBMS Yes (with SSL) Yes No Yes (length only) No Yes Yes Yes Yes Yes
MySQL Yes (SSL with 4.0) No Yes (with 5.5) No Partial (no security page)[90] Yes???8 No
OpenBase SQL Yes? Yes (Open Directory, LDAP) No??????
Microsoft SQL Server Yes? Yes (Microsoft Active Directory) Yes Yes Yes Yes (From 2008) Yes Yes Yes (EAL1+1)
Microsoft SQL Server Compact (Embedded Database) No (not relevant, only file permissions) No (not relevant) No (not relevant) No (not relevant) Yes Yes (file access) Yes Yes No?
Oracle Yes Yes Yes Yes? Yes Yes Yes Yes Yes (EAL4+1)
PostgreSQL Yes No Yes (LDAP, Kerberos…9) Yes (as of 9.0 with passwordcheck module) Yes[91] Yes No Yes No Yes (EAL11)
SQL Anywhere Yes? Yes (Kerberos) Yes? Yes Yes No Yes Yes (EAL3+1 as Adaptive Server Anywhere)
SQLite No (not relevant, only file permissions) No (not relevant) No (not relevant) No (not relevant) Partial (no security page)[92] Yes (file access) Yes Yes No No
 Native network encryption1Brute-force protectionEnterprise directory compatibilityPassword complexity rules2Patch access3Run unprivileged4AuditResource limitSeparation of duties (RBAC)5Security Certification

Note (1): Network traffic could be transmitted in a secure way (not clear-text, en general SSL encryption). Precise if option is default, included option or an extra modules to buy.

Note (2): Options are present to set a minimum size for password, respect complexity like presence of numbers or special characters.

Note (3): How do you get security updates? Is it free access, do you need a login or to pay? Is there easy access through a Web/FTP portal or RSS feed or only through offline access (mail CD-ROM, phone).

Note (4): Does database process run as root/administrator or unprivileged user? What is default configuration?

Note (5): Is there a separate user to manage special operation like backup (only dump/restore permissions), security officer (audit), administrator (add user/create database), etc.? Is it default or optional?

Note (6): Common Criteria certified product list[93]

Note (7): FirebirdSQL seems to only have SYSDBA user and DB owner. There are no separate roles for backup operator and security administrator.

Note (8): User can define a dedicated backup user but nothing particular in default install[94]

Note (9): Authentication methods[95]

Note (10): Informix Dynamic Server supports PAM and other configurable authentication. By default uses OS authentication.

[edit] Databases vs schemas (terminology)

The SQL specification makes clear what an "SQL schema" is; however, different databases implement it incorrectly. To compound this confusion the functionality can, when incorrectly implemented, overlap with that of the parent-database. An SQL schema is simply a namespace within a database, things within this namespace are addressed using the member operator dot ".". This seems to be a universal amongst all of the implementations.

A true fully (database, schema, and table) qualified query is exemplified as such: SELECT * FROM database.schema.table

Now, the issue, both a schema and a database can be used to isolate one table, "foo" from another like named table "foo". The following is pseudo code:

  • SELECT * FROM db1.foo vs. SELECT * FROM db2.foo (no explicit schema between db and table)
  • SELECT * FROM [db1.]default.foo vs. SELECT * FROM [db1.]alternate.foo (no explicit db prefix)

The problem that arises is that former MySQL users will create multiple databases for one project. In this context, MySQL databases are analogous in function to Postgres-schemas, insomuch as Postgres lacks off-the-shelf cross-database functionality that MySQL has. Conversely, PostgreSQL has applied more of the specification implementing cross-table, cross-schema, and then left room for future cross-database functionality.

MySQL aliases schema with database behind the scenes, such that CREATE SCHEMA and CREATE DATABASE are analogs. It can therefore be said that MySQL has implemented cross-table functionality, skipped schema functionality entirely, and provided similar functionality into their implementation of a database. In summary, Postgres fully supports schemas but lacks some functionality MySQL has with databases, while MySQL does not even attempt to support true schemas.

Oracle has its own spin where creating a user is synonymous with creating a schema. Thus a database administrator can create a user called PROJECT and then create a table PROJECT.TABLE. Users can exist without schema objects, but an object is always associated with an owner (though that owner may not have privileges to connect to the database). With the Oracle 'shared-everything' RAC architecture, the same database can be opened by multiple servers concurrently. This is independent of replication, which can also be used, whereby the data is copied for use by different server. In the Oracle view, the 'database' is a set of files which contains the data while the 'instance' is a set of processes (and memory) through which a database is accessed.

The end result is confusion between the database factions. The Postgres and Oracle communities maintain that one database is all that is needed for one project, per the definition of database. MySQL proponents maintain that schemas have no legitimate purpose when the functionality can be achieved with databases. Postgres adheres to the SQL specification, in a more intuitive fashion (bottom-up), while MySQL’s pragmatic counterargument allows their users to get the job done while creating conceptual confusion.

[edit] See also


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值