SQL

From database24
Revision as of 17:11, 22 July 2010 by Dec (talk | contribs) (Created page with 'Category:SQL == Basics == === Select === The SELECT statement is used to assemble fields of different tables and queries to a new result. ==== Examples ==== * Selecting al...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Basics

Select

The SELECT statement is used to assemble fields of different tables and queries to a new result.

Examples

  • Selecting all fields from a table
SELECT *
  FROM tbl
  • Selecting two fields from a table
SELECT field1
     , field2
  FROM tbl


Insert

  • INSERT INTO

Update

  • UPDATE

Delete

  • DELETE


Joins

Distinct

Sub Select