Structured Query Language (SQL) - Cultural View of Technology
Structured Query Language (SQL) - Cultural View of Technology Structured Query Language (SQL) - Cultural View of Technology
Epictetus Database Client 52 Epictetus Database Client Developer(s) Antilogic Software Stable release 1.0 beta / June 17, 2009 Operating system Platform Java Cross-platform Type Database administration tool License Freeware Website antilogics.com [1] Epictetus is free cross-platform multi-database administration tool. Epictetus requires JVM to run. Epictetus is distributed under the Freeware License. Feature Summary • Multithreading • Autocomplete • Primary and foreign keys highlight • BLOB, CLOB autoload • SQL syntax highlight • Query history • Schema browser • Edit table data • Restore last opened windows • Autoupdate History The Epictetus was developed by the Antilogic Software [2] . Supported databases • Oracle Database 8i, 9i, 10g, 11g • Microsoft SQL Server • MySQL • InterBase/Firebird • PostgreSQL • HSQLDB • H2
Epictetus Database Client 53 External links • Antilogic Software - Epictetus [3] • Interview: Konstantin Chikarev on Epictetus Database Manager [4] References [1] http://antilogics.com/ [2] http://www.antilogics.com/ [3] http://www.antilogics.com/epictetus.html [4] http://java.dzone.com/news/interview-konstantin-chikarev- Foreign key In the context of relational databases, a foreign key is a referential constraint between two tables. [1] The foreign key identifies a column or a set of columns in one (referencing) table that refers to set of columns in another (referenced) table. The columns in the referencing table must be the primary key or other candidate key in the referenced table. The values in one row of the referencing columns must occur in a single row in the referenced table. Thus, a row in the referencing table cannot contain values that don't exist in the referenced table (except potentially NULL). This way references can be made to link information together and it is an essential part of database normalization. Multiple rows in the referencing table may refer to the same row in the referenced table. Most of the time, it reflects the one (master table, or referenced table) to many (child table, or referencing table) relationship. The referencing and referenced table may be the same table, i.e. the foreign key refers back to the same table. Such a foreign key is known in SQL:2003 as a self-referencing or recursive foreign key. A table may have multiple foreign keys, and each foreign key can have a different referenced table. Each foreign key is enforced independently by the database system. Therefore, cascading relationships between tables can be established using foreign keys. Improper foreign key/primary key relationships or not enforcing those relationships are often the source of many database and data modeling problems. Defining Foreign Keys Foreign keys are defined in the ANSI SQL Standard, through a FOREIGN KEY constraint. The syntax to add such a constraint to an existing table is defined in SQL:2003 as shown below. Omitting the column list in the REFERENCES clause implies that the foreign key shall reference the primary key of the referenced table. ALTER TABLE ADD [ CONSTRAINT ] FOREIGN KEY ( {, }... ) REFERENCES [ ( {, }... ) [ ON UPDATE ] [ ON DELETE ] Likewise, foreign keys can be defined as part of the CREATE TABLE SQL statement. CREATE TABLE table_name ( id INTEGER PRIMARY KEY, col2 CHARACTER VARYING(20), col3 INTEGER, ...
- Page 5 and 6: SQL 1 SQL Paradigm Multi-paradigm A
- Page 7 and 8: SQL 3 result set. SELECT * FROM Boo
- Page 9 and 10: SQL 5 • MERGE is used to combine
- Page 11 and 12: SQL 7 REVOKE SELECT, UPDATE ON My_t
- Page 13 and 14: SQL 9 2008 SQL:2008 Legalizes ORDER
- Page 15 and 16: SQL 11 [9] ANSI/ISO/IEC Internation
- Page 17 and 18: SQL:2003 13 [11] http://www.iso.org
- Page 19 and 20: Advantage Database Server 15 • Sm
- Page 21 and 22: Call Level Interface 17 Call Level
- Page 23 and 24: Check Constraint 19 Check Constrain
- Page 25 and 26: Commit (data management) 21 Commit
- Page 27 and 28: Correlated subquery 23 Correlated s
- Page 29 and 30: CUBRID 25 Linux Foundation Silver S
- Page 31 and 32: CUBRID 27 References [1] http://www
- Page 33 and 34: Cursor (databases) 29 Scrollable cu
- Page 35 and 36: Cursor (databases) 31 Disadvantages
- Page 37 and 38: Data Definition Language 33 Data De
- Page 39 and 40: Data Manipulation Language 35 Data
- Page 41 and 42: Database Console Commands (Transact
- Page 43 and 44: Database Console Commands (Transact
- Page 45 and 46: Database Console Commands (Transact
- Page 47 and 48: DbForge Studio for MySQL 43 • Dat
- Page 49 and 50: Declarative Referential Integrity 4
- Page 51 and 52: Devgems Data Modeler 47 External li
- Page 53 and 54: Embedded SQL 49 External links •
- Page 55: EnterpriseDB 51 EnterpriseDB also o
- Page 59 and 60: Foreign key 55 SET NULL The foreign
- Page 61 and 62: FSQL 57 Comparator for Possibility
- Page 63 and 64: Hint (SQL) 59 Hint (SQL) In various
- Page 65 and 66: HSQLDB 61 Transaction support HSQLD
- Page 67 and 68: MaxDB 63 MaxDB Stable release 7.6.0
- Page 69 and 70: Meta-SQL 65 Meta-SQL 'Meta-SQL' Use
- Page 71 and 72: MySQL Workbench 67 MySQL Migration
- Page 73 and 74: MySQL Workbench 69 [14] MySQL Workb
- Page 75 and 76: Navicat 71 Free version Navicat Lit
- Page 77 and 78: PL/pgSQL 73 PL/pgSQL PL/pgSQL (Proc
- Page 79 and 80: PL/SQL 75 User-defined exceptions a
- Page 81 and 82: PL/SQL 77 A selection of other data
- Page 83 and 84: PL/SQL 79 Array handling PL/SQL ref
- Page 85 and 86: PL/SQL 81 Similar languages PL/SQL
- Page 87 and 88: Query optimizer 83 Join ordering Th
- Page 89 and 90: Query plan 85 Query plan A query pl
- Page 91 and 92: Rollback (data management) 87 Rollb
- Page 93 and 94: SQL CLR 89 External links • MSDN:
- Page 95 and 96: SQL Problems Requiring Cursors 91 S
- Page 97 and 98: SQL injection 93 Incorrect type han
- Page 99 and 100: SQL injection 95 mysql_query($query
- Page 101 and 102: SQL/CLI 97 SQL/CLI The SQL/CLI, or
- Page 103 and 104: SQL/Schemata 99 SQL/Schemata The SQ
- Page 105 and 106: SQLPro SQL Client 101 SQLPro SQL Cl
Epictetus Database Client 53<br />
External links<br />
• Antilogic S<strong>of</strong>tware - Epictetus [3]<br />
• Interview: Konstantin Chikarev on Epictetus Database Manager [4]<br />
References<br />
[1] http://antilogics.com/<br />
[2] http://www.antilogics.com/<br />
[3] http://www.antilogics.com/epictetus.html<br />
[4] http://java.dzone.com/news/interview-konstantin-chikarev-<br />
Foreign key<br />
In the context <strong>of</strong> relational databases, a foreign key is a referential constraint between two tables. [1] The foreign key<br />
identifies a column or a set <strong>of</strong> columns in one (referencing) table that refers to set <strong>of</strong> columns in another (referenced)<br />
table. The columns in the referencing table must be the primary key or other candidate key in the referenced table.<br />
The values in one row <strong>of</strong> the referencing columns must occur in a single row in the referenced table. Thus, a row in<br />
the referencing table cannot contain values that don't exist in the referenced table (except potentially NULL). This<br />
way references can be made to link information together and it is an essential part <strong>of</strong> database normalization.<br />
Multiple rows in the referencing table may refer to the same row in the referenced table. Most <strong>of</strong> the time, it reflects<br />
the one (master table, or referenced table) to many (child table, or referencing table) relationship.<br />
The referencing and referenced table may be the same table, i.e. the foreign key refers back to the same table. Such a<br />
foreign key is known in <strong>SQL</strong>:2003 as a self-referencing or recursive foreign key.<br />
A table may have multiple foreign keys, and each foreign key can have a different referenced table. Each foreign key<br />
is enforced independently by the database system. Therefore, cascading relationships between tables can be<br />
established using foreign keys.<br />
Improper foreign key/primary key relationships or not enforcing those relationships are <strong>of</strong>ten the source <strong>of</strong> many<br />
database and data modeling problems.<br />
Defining Foreign Keys<br />
Foreign keys are defined in the ANSI <strong>SQL</strong> Standard, through a FOREIGN KEY constraint. The syntax to add such a<br />
constraint to an existing table is defined in <strong>SQL</strong>:2003 as shown below. Omitting the column list in the<br />
REFERENCES clause implies that the foreign key shall reference the primary key <strong>of</strong> the referenced table.<br />
ALTER TABLE <br />
ADD [ CONSTRAINT ]<br />
FOREIGN KEY ( {, }... )<br />
REFERENCES [ ( {, }... )<br />
[ ON UPDATE ]<br />
[ ON DELETE ]<br />
Likewise, foreign keys can be defined as part <strong>of</strong> the CREATE TABLE <strong>SQL</strong> statement.<br />
CREATE TABLE table_name (<br />
id INTEGER PRIMARY KEY,<br />
col2 CHARACTER VARYING(20),<br />
col3 INTEGER,<br />
...