The different variations of SQL have a lot in common. The details of SQL in this section are specific to the T-SQL of Microsoft SQL Server and the SQL of MySQL.

Intro

SQL: Structured Query Language. Pronounced "sequel". SQL is a cross platform language used to select, update, insert, or delete data in relational databases. SQL is also used to administer the RDBMS (relational database management system).

SQL was developed in the 1970s by IBM and is supported by most of the commercial RDBMS producers including Oracle, Sybase, and Microsoft SQL Server. Each DBMS  has its own variation of SQL. Between dialects of SQL, the basic access syntax does not vary much from the "official" ANSI and ISO version (aka SQL-89/SQL1 and SQL-92/SQL2).

Here are some of the SQL variations:

SQL statements are often divided into three categories:

SQL Conventions

In real SQL code the following conventions apply:

In addition to my usual site conventions, the following syntax conventions are used in my examples of SQL code:

You may also want to see my article on DB Naming Conventions.

Page Modified: (Hand noted: 2007-10-12 18:41:15Z) (Auto noted: 2010-12-24 22:47:34Z)