Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
2Activity

Table Of Contents

SQL Wildcard Examples
Using the % Wildcard
Using the _ Wildcard
Using the [charlist] Wildcard
The IN Operator
SQL IN Syntax
IN Operator Example
The BETWEEN Operator
BETWEEN Operator Example
Example 2
SQL Alias
SQL Alias Syntax for Tables
SQL Alias Syntax for Columns
Alias Example
SQL JOIN
O_Id OrderNo P_Id
Different SQL JOINs
SQL INNER JOIN Keyword
SQL INNER JOIN Syntax
SQL INNER JOIN Example
LastName FirstName OrderNo
SQL LEFT JOIN Keyword
SQL LEFT JOIN Syntax
SQL LEFT JOIN Example
SQL RIGHT JOIN Keyword
SQL RIGHT JOIN Syntax
SQL RIGHT JOIN Example
SQL FULL JOIN Keyword
SQL FULL JOIN Syntax
The SQL UNION Operator
SQL UNION Syntax
SQL UNION ALL Syntax
SQL UNION Example
"Employees_Norway":
E_ID E_Name
"Employees_USA":
E_Name
SQL UNION ALL Example
Result
The SQL SELECT INTO Statement
SQL SELECT INTO Syntax
SQL SELECT INTO Example
SQL SELECT INTO - With a WHERE Clause
SQL SELECT INTO - Joined Tables
The CREATE DATABASE Statement
SQL CREATE DATABASE Syntax
CREATE DATABASE Example
The CREATE TABLE Statement
SQL CREATE TABLE Syntax
CREATE TABLE Example
SQL Constraints
SQL NOT NULL Constraint
SQL UNIQUE Constraint
SQL UNIQUE Constraint on CREATE TABLE
MySQL:
SQL Server / Oracle / MS Access:
MySQL / SQL Server / Oracle / MS Access:
SQL UNIQUE Constraint on ALTER TABLE
To DROP a UNIQUE Constraint
SQL PRIMARY KEY Constraint
SQL PRIMARY KEY Constraint on CREATE TABLE
SQL PRIMARY KEY Constraint on ALTER TABLE
To DROP a PRIMARY KEY Constraint
SQL FOREIGN KEY Constraint
SQL FOREIGN KEY Constraint on CREATE TABLE
SQL FOREIGN KEY Constraint on ALTER TABLE
To DROP a FOREIGN KEY Constraint
SQL CHECK Constraint
SQL CHECK Constraint on CREATE TABLE
My SQL:
SQL CHECK Constraint on ALTER TABLE
To DROP a CHECK Constraint
SQL DEFAULT Constraint
SQL DEFAULT Constraint on CREATE TABLE
My SQL / SQL Server / Oracle / MS Access:
SQL DEFAULT Constraint on ALTER TABLE
To DROP a DEFAULT Constraint
Indexes
SQL CREATE INDEX Syntax
SQL CREATE UNIQUE INDEX Syntax
CREATE INDEX Example
The DROP INDEX Statement
DROP INDEX Syntax for MS Access:
DROP INDEX Syntax for MS SQL Server:
DROP INDEX Syntax for DB2/Oracle:
DROP INDEX Syntax for MySQL:
The DROP TABLE Statement
The DROP DATABASE Statement
The TRUNCATE TABLE Statement
The ALTER TABLE Statement
SQL ALTER TABLE Syntax
SQL ALTER TABLE Example
P_Id LastName FirstName Address City DateOfBirth
Change Data Type Example
DROP COLUMN Example
Syntax for MySQL
Syntax for SQL Server
Syntax for Access
Syntax for Oracle
SQL CREATE VIEW Statement
SQL CREATE VIEW Syntax
SQL CREATE VIEW Examples
SQL Updating a View
SQL CREATE OR REPLACE VIEW Syntax
SQL Dropping a View
SQL DROP VIEW Syntax
SQL Dates
MySQL Date Functions
Function Description
SQL Server Date Functions
SQL Date Data Types
SQL Working with Dates
OrderId ProductName OrderDate
SQL NULL Values
SQL Working with NULL Values
SQL IS NULL
LastName FirstName Address
SQL IS NOT NULL
SQL ISNULL(), NVL(), IFNULL() and COALESCE() Functions
P_Id ProductName UnitPrice UnitsInStock UnitsOnOrder
SQL Server / MS Access
Oracle
MySQL
Microsoft Access Data Types
Data type Description Storage
MySQL Data Types
Text types:
Data type Description
Number types:
Date types:
SQL Server Data Types
Character strings:
Unicode strings:
Binary types:
Other data types:
0 of .
Results for:
No results containing your search query
P. 1
Mysql(adv)

Mysql(adv)

Ratings: (0)|Views: 108 |Likes:
Published by tottichien

More info:

Published by: tottichien on Feb 08, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

11/12/2012

pdf

text

original

You're Reading a Free Preview
Pages 5 to 47 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->