您的位置:首页 > 其它

Comparison of relational database management systems

2011-09-12 05:17 489 查看
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]

1
General information
2
Timeline
3
Operating system support
4
Fundamental features
5
Limits
6
Tables and views
7
Indexes
8
Database capabilities
9
Data types
10
Other objects
11
Partitioning
12
Access control
13
Databases vs schemas (terminology)
14
See also
15
References
16
External links

[edit]
General information



Maintainer

First public release date

Latest stable version

Latest release date

Software license

4D (4th Dimension)4D s.a.s1984v12.2 SQLProprietary
ADABASSoftware AG19708.1Proprietary
Adaptive Server EnterpriseSybase198715.5Proprietary
Advantage Database Server (ADS)Sybase199210.12010-12Proprietary
AltibaseAltibase Corp.[1]2000-075.1.1Proprietary
Apache DerbyApache200410.8.1.22011-05-02Apache License
CUBRIDNHN Corporation[2]2008-118.4.02011-05-12GPL v2
DatacomCA, Inc.?11.2Proprietary
DB2IBM19839.72009-04-22Proprietary
DrizzleBrian Aker2008Build 1126BSD,

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.xProprietary
LucidDBThe Eigenbase Project[9]2007-010.9.3GPL 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.3Proprietary
Omnis StudioTigerLogic Inc[14]1982-074.3.1 Release 1no2008-05Proprietary
OpenBase SQLOpenBase International[15]199111.0.0Proprietary
OracleOracle Corporation1979-1111g Release 22009-09Proprietary
Oracle RdbOracle Corporation19847.2.5.02011-06-20[16]Proprietary
OpenEdgeProgress Software Corporation198410.2BProprietary
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.6Proprietary
RDM EmbeddedRaima Inc.[23]198410Proprietary
RDM ServerRaima Inc.[23]19908.3Proprietary
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.10Proprietary
UniDataRocket Software19887.2.102011-04Proprietary
UniVerseRocket Software198511.1.32011-06Proprietary

[edit]
Timeline

Timeline of the development of major RDBMS software:





[edit]
Operating system support

The
operating systems the RDBMSes can run on.



Windows

Mac OS X

Linux

BSD

UNIX

AmigaOS

Symbian

z/OS1

4th DimensionYesYesNoNoNoNoNoNo
ADABASYesNoYesNoYesNoNoYes
Adaptive Server EnterpriseYesNoYesYesYesNoNoNo
Advantage Database ServerYesNoYesNoNoNoNoNo
AltibaseYesNoYesNoYesNoNoNo
Apache Derby2YesYesYesYesYesNoNoYes
CUBRIDYesPartial10YesNoNoNoNoNo
DrizzleNoYesYesYesYesNoNoNo
DB25YesYes (Express C)YesNoYesNoNoYes
Empress Embedded DatabaseYesYesYesYesYesNoNoNo
FirebirdYesYesYesYesYesNoNoMaybe
HSQLDB2YesYesYesYesYesNoNoYes
H22YesYesYesYesYesNoNoYes
FileMakerYesYesNoNoNoNoNoNo
Informix Dynamic ServerYesYesYesYesYesNoNoYes
IngresYesYesYesYesYesNoNoPartial
InterBaseYesYesYesNoYes (Solaris)NoNoNo
Linter SQL RDBMS6YesYesYesYesYes6NoNoNo
LucidDBYesYesYesNoNoNoNoNo
MaxDBYesNoYesNoYesNoNoMaybe
Microsoft Access (JET)YesNoNoNoNoNoNoNo
Microsoft Visual FoxproYesNoNoNoNoNoNoNo
Microsoft SQL ServerYesNoNoNoNoNoNoNo
Microsoft SQL Server Compact (Embedded Database)YesNoNoNoNoNoNoNo
MonetDBYesYesYesNoYesNoNoNo
MySQL8YesYesYesYesYesYesYesYes
NavibasePartialYesPartialPartialNoNoNoNo
Omnis StudioYesYesYesNoNoNoNoNo
OpenBase SQLYesYesYesYesYesNoNoNo
Oracle4YesYesYesNoYesNoNoYes
Oracle Rdb3NoNoNoNoNoNoNo
OpenEdgeYesNoYesNoYesNoNoNo
OpenLink VirtuosoYesYesYesYesYesNoNoYes
Pervasive PSQLYesYes (OEM only)YesNoNoNoNoNo
Polyhedra7YesNoYesNoYesNoNoNo
PostgreSQLYesYesYesYesYesNoNoNo
R:BaseYesNoNoNoNoNoNoNo
RDM EmbeddedYesYesYesYesYesNoNoNo
RDM ServerYesYesYesYesYesNoNoNo
ScimoreDBYesNoNoNoNoNoNoNo
SmallSQL2YesYesYesYesYesNoNoYes
SQL AnywhereYesYesYesNoYesNoNoNo
SQLBaseYesNoYesNoNoNoNoNo
SQLiteYesYesYesYesYesYesYesMaybe
SuperbaseYesNoNoNoNoYesNoNo
TeradataYesNoYesNoYesNoNoNo
UniDataYesNoYesNoYesNoNoNo
UniVerseYesNoYesNoYesNoNoNo
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 DimensionYesYesYesYesGUI &
SQL
ADABASYesNoYesYesproprietary direct call & SQL (via 3rd party)
Adaptive Server EnterpriseYesYesYesYesSQL
Advantage Database ServerYesYesYesYes3API &
SQL
AltibaseYesYesYes?SQL
Apache DerbyYesYesYesYesSQL
CUBRIDYesYesYesYesGUI &
SQL
DrizzleYesYesYesYesSQL
DB2YesYesYesYesGUI &
SQL
Empress Embedded DatabaseYesYesYesYesAPI &
SQL
FirebirdYesYesYesYesSQL
HSQLDBYesYesYesYesSQL
H2YesYesYesYesSQL
Informix Dynamic ServerYesYesYesYesSQL
IngresYesYesYesYesSQL &
QUEL
InterBaseYesYesYesYesSQL
Linter SQL RDBMSYesYesYesYesGUI &
SQL
LucidDBYesNoNoYesSQL
MaxDBYesYesYesYesSQL
Microsoft Access (JET)YesYesYesYesGUI &
SQL
Microsoft Visual FoxProNoYesYesNoGUI &
SQL
Microsoft SQL ServerYesYesYesYesGUI &
SQL
Microsoft SQL Server Compact (Embedded Database)YesYesYesYesGUI &
SQL
MonetDBYesYesYesYes?
MySQLYes2Yes2Yes2 except for

DDL
[27]
YesSQL
NavibaseYesYesYesYesAPI &

GUI & SQL
OpenBase SQLYesYesYesYesGUI &
SQL
OracleYesYesYes except for
DDL
[27]
YesAPI &

GUI & SQL
Oracle RdbYesYesYesYesSQL
OpenLink VirtuosoYesYesYesYesAPI &

GUI & SQL
Polyhedra DBMSYesYesYesYesSQL
PostgreSQLYesYesYesYesGUI &
SQL
RDM EmbeddedYesYesYesYesSQL &
API
RDM ServerYesYesYesYesSQL &
API
ScimoreDBYesYesYesPartialSQL
SQL AnywhereYesYesYesYesSQL
SQLBaseYesYesYesYesAPI &

GUI & SQL
SQLiteYesYesYesOptional[28]SQL
TeradataYesYesYesYesSQL
UniDataYesNoYesYesMultiple
UniVerseYesNoYesYesMultiple
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 DimensionYesPlanned for inclusion in next major release
ADABAS??
Adaptive Server EnterpriseYes1No
Advantage Database ServerYesNo (only common views)
AltibaseYesYes
Apache DerbyYesNo
CUBRIDNoNo
DrizzleYesNo4
DB2YesYes
Empress Embedded DatabaseYesYes
FirebirdYesNo (only common views)
HSQLDBYesNo
H2YesNo
Informix Dynamic ServerYesNo2
IngresYesPlanned for inclusion in next major release
InterBaseYesNo
Linter SQL RDBMSYesNo
LucidDBNoNo
MaxDBYesNo
Microsoft Access (JET)NoNo
Microsoft Visual FoxproYesYes
Microsoft SQL ServerYesYes3
Microsoft SQL Server Compact (Embedded Database)YesNo
MonetDBYesNo
MySQLYesNo4
OpenBase SQLYesYes
OracleYesYes
Oracle RdbYesYes
OpenLink VirtuosoYesYes
Polyhedra DBMSNoNo (only common views)
PostgreSQLYesNo5
SQL AnywhereYesYes
ScimoreDBNoNo
SQLiteYesNo
TeradataYesYes
UniDataYesNo
UniVerseYesNo
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 EnterpriseNoNoYesNoYesNoNoNoYes?
Advantage Database ServerNoNoYesNoYesYesNoNoYes?
Apache DerbyNoNoNoNoNoNoNoNoNo[40]?
CUBRIDNoNoNoNoYesNoNoNo??
DrizzleNoNoNoNoNoNoNoNoNo?
DB2No?YesNoYesYesNoNoYes[41]?
Empress Embedded DatabaseYesNoNoYesNoYesNoNoNo?
FirebirdNoNoYesNoYes 1NoNoNoNo[42]?
HSQLDBNoNoNoNoNoNoNoNoNo?
H2NoYesNoNoNoNoNoNoYes[43]?
Informix Dynamic ServerYesYesYesYesYesYesYesYesYesYesYes
IngresYesYesIngres v10NoNoIngres v10NoNoNo?
InterBaseNoNoNoNoNoNoNoNoNo?
Linter SQL RDBMS10NoNoNoNoNoNoNoNoYes[44]?
LucidDBNoNoNoNoNoYesNoNoNo?
MaxDBNoNoNoNoNoNoNoNoNo?
Microsoft Access (JET)NoNoNoNoNoNoNoNoNo[45]?
Microsoft Visual FoxproNoNoYesYesYes2YesNoNoNo?
Microsoft SQL Server?Non/Cluster & fill factorYes3Yes4No3NoNoNoYes[46]Yes[47]
Microsoft SQL Server Compact (Embedded Database)NoNoNoNoNoNoNoNoNo[48]?
MonetDBNoYesNoNoNoNoNoNo??
MySQLMyISAM tables onlyMEMORY, Cluster (NDB), InnoDB,5 tables onlyNo[49]NoNoNoNoNoMyISAM tables only[50]?
OracleYes 11Cluster TablesYesYes 6YesYesNoNoYes[51]Yes[52]
Oracle RdbNoYes?NoNo?NoNo??
OpenLink VirtuosoYesClusterYesNoNoYesNoNoYes?
Polyhedra DBMSNoYesNoNoNoNoNoNo??
PostgreSQLYesYesYesYesYes7Yes8YesYesYes[53]Postgis[54]
ScimoreDBNoNoNoNoNoNoNoNoYes[55]?
SQL AnywhereNoNoNoNoNoNoNoNoYes?
SQLiteYesNoNoNoYesNoNoNoYes[56]SpatiaLite[57]
TeradataNoYesYesYesNoYesNoNo?[58]?
UniVerseYesYesYes3Yes3Yes3NoNoNo??
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 DimensionYesYesYesYesYesNoNoYes???
ADABASYes??????????
Adaptive Server EnterpriseYes??YesYesYesYesYes??Yes
Advantage Database ServerYesNoNoYesYesYesYesYes?No?
AltibaseYes??YesYesYesYesYes???
Apache DerbyYesYesYesYesYes??YesNoNo?
CUBRIDYesYesYesYesYesYesYesYesNoNo?
DrizzleYesNoNoYesYesYesNoYesNoNoNo[65]
DB2YesYesYesYesYesYesYesYesYesYesYes[66]
Empress Embedded DatabaseYesYesYesYesYesYesYesYes???
FirebirdYes??YesYesYesYesYesYesYes?
HSQLDBYesYesYesYesYesYesNoYesYesNoNo
H2YesYesYesYesYesYesNoYesexperimental[67]No[68]?
Informix Dynamic ServerYes?Yes, via MINUSYesYesYesYesYesYes?Yes[69]
IngresYesNoNoYesYesYesYesYesNoNo?
InterBaseYes??YesYes??Yes???
Linter SQL RDBMSYesYesYesYesYesYesYesYesNoYes?
LucidDBYesYesYesYesYesYesYesNo???
MaxDBYes??YesYesYesNoYes???
Microsoft Access (JET)YesNoNoYesYesYesNoYesNoNo?
Microsoft Visual FoxproYes??YesYesYes?Yes???
Microsoft SQL ServerYesYes (2005 and beyond)Yes (2005 and beyond)YesYesYesYesYesYesYesYes[70]
Microsoft SQL Server Compact (Embedded Database)YesNoNoYesYes?NoYesNoNo?
MonetDB???????????
MySQLYesNoNoYesYesYesNoYesNo[71]NoNo[72]
OpenBase SQLNoNoNoYesYesYesYesYes???
OracleYesYesYes, via MINUSYesYesYesYesYesYes 1YesYes[73]
Oracle RdbYes??YesYesYesYesYes???
OpenLink VirtuosoYes??YesYesYes?Yes???
Polyhedra DBMSYesYesYesYesNo??Yes???
PostgreSQLYesYesYesYesYesYesYesYesYesYesNo[74]
ScimoreDBYes??YesLEFT onlyYesYesYes???
SmallSQL???????????
SQL AnywhereYesYesYesYesYesYesYesYesYesYes?
SQLiteYesYesYesYesLEFT onlyYes?YesNoNo?
TeradataYesYesYesYesYesYesYesYesNoYesYes
UniVerseYesYesYesYesYesYesYesNoNoNo?
UnionIntersectExceptInner joinsOuter joinsInner selectsMerge joinsBlobs and

Clobs
Common 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, TIMESTAMPENUM, 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 DimensionYesNoYesYesYesYes
ADABAS?Yes?Yes?Yes??
Adaptive Server EnterpriseYesYesYesYesYesYes
Advantage Database ServerYesYesYesYesYesYes
Apache DerbyNoYesYesYes 2Yes 2Yes 2
CUBRIDYesYesYesYesYes 2Yes
DrizzleYesYesYes 4Yes 4Yes 4Yes 4
Empress Embedded DatabaseYes via RANGE CHECKYesYesYesYesYes
DB2Yes via CHECK CONSTRAINTYesYesYesYesYes
FirebirdYesYesYesYesYesYes
HSQLDBYesNoYesYesYesYes
H2YesNoYes 2Yes 2Yes 2Yes
Informix Dynamic ServerYes via CHECKYesYesYesYesYes
IngresYesYesYesYesYesYes
InterBaseYesYesYesYesYesYes
Linter SQL RDBMSNoYesYesYesYesNo
LucidDBNoYesNoYes 2Yes 2Yes 2
MaxDBYesYesYesYesYes?
Microsoft Access (JET)YesNoNoNoYes, But single DML/DDL OperationYes
Microsoft Visual FoxproNoYesYesYesYesYes
Microsoft SQL ServerYes (2000 and beyond)YesYesYesYesYes
Microsoft SQL Server Compact (Embedded Database)NoYesNoNoNoNo
MonetDBNoNoYesYesYesYes
MySQLNo 3YesYesYesYesYes
OpenBase SQLYesYesYesYesYesYes
OracleYesYesYesYesYesYes
Oracle RdbYesYesYesYesYesYes
OpenLink VirtuosoYesYesYesYesYesYes
Polyhedra DBMSNoNoYesYesYesYes
PostgreSQLYesYesYesYesYesYes
ScimoreDBNoNoNoNoYesYes
SQL AnywhereYesYesYesYesYesYes
SQLiteNoNoYesNoNoYes
TeradataNoYesYesYesYesYes
UniDataNoNoYesYesYesYes
UniVerseNoNoYesYesYesYes
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 EnterpriseYesYesNoYes?
Advantage Database ServerNoNoNoNoYes
Apache DerbyNoNoNoNo?
CUBRIDYesYesNoYes?
IBM DB2YesYesYesYes?
Empress Embedded DatabaseNoNoNoNoYes
FirebirdNoNoNoNoNo
HSQLDBNoNoNoNoNo
H2NoNoNoNoNo
Informix Dynamic ServerYesYesYesYesYes
IngresYesYesYesYesNo
InterBaseNoNoNoNoYes
Linter SQL RDBMSNoNoNoNoNo
MaxDBNoNoNoNo?
Microsoft Access (JET)NoNoNoNoYes
Microsoft Visual FoxproNoNoNoNoNo
Microsoft SQL ServerYesNoNoNo?
Microsoft SQL Server Compact (Embedded Database)NoNoNoNoYes
MonetDBYes (M5)Yes (M5)Yes (M5)No?
MySQLYesYesYesYes?
OpenBase SQL?????
OracleYesYesYesYes?
Oracle RdbYesYes???
OpenLink VirtuosoYesNoNoNo?
Polyhedra DBMSNoNoNoNoNo
PostgreSQLYes1Yes1Yes1Yes1?
ScimoreDBNoYesNoNoYes
SQL AnywhereNoNoNoNo?
SQLiteNoNoNoNo?
TeradataYesYesYesYes?
UniVerseYesYesYesYesYes
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 EnterpriseYes (optional; to pay)YesYes (optional ?)YesPartial (need to register; depend on which product)[87]YesYesYesYesYes (EAL4+ 1)
Advantage Database ServerYesNoNoNo?YesNoNoYes?
DB2Yes?Yes (LDAP, Kerberos…)Yes?YesYesYesYesYes (EAL4+6)
Empress Embedded Database??NoNoYesYesYesNoYesNo
FirebirdNoYes[88]Yes (Windows trusted authenification)NoPartial (no security page)[89]YesNoNoNo7?
HSQLDBYesNoNoNoYesYesNoNoYesNo
H2YesYes?No?Yes?YesYesNo
Informix Dynamic ServerYes?Yes10?10YesYesYesYesYes?
Linter SQL RDBMSYes (with SSL)YesNoYes (length only)NoYesYesYesYesYes
MySQLYes (SSL with 4.0)NoYes (with 5.5)NoPartial (no security page)[90]Yes???8No
OpenBase SQLYes?Yes (Open Directory, LDAP)No??????
Microsoft SQL ServerYes?Yes (Microsoft Active Directory)YesYesYesYes (From 2008)YesYesYes (EAL1+1)
Microsoft SQL Server Compact (Embedded Database)No (not relevant, only file permissions)No (not relevant)No (not relevant)No (not relevant)YesYes (file access)YesYesNo?
OracleYesYesYesYes?YesYesYesYesYes (EAL4+1)
PostgreSQLYesNoYes (LDAP, Kerberos…9)Yes (as of 9.0 with passwordcheck module)Yes[91]YesNoYesNoYes (EAL11)
SQL AnywhereYes?Yes (Kerberos)Yes?YesYesNoYesYes (EAL3+1 as Adaptive Server Anywhere)
SQLiteNo (not relevant, only file permissions)No (not relevant)No (not relevant)No (not relevant)Partial (no security page)[92]Yes (file access)YesYesNoNo
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)



This section may contain
original research
. Please
improve it by
verifying the claims made and adding
references. Statements consisting only of original research may be removed. More details may be available on the

talk page. (June 2010)
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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: