You are on page 1of 2

TRANSLATE

Search w3schools.com HOME HTML C SS XML JAVASC RIPT ASP PHP SQL MORE...
R EFER ENC ES | EXAMPLES | FO R UM

Search
| ABO UT

YOUR FREE WEBSITE Free Flash Website Free Website Builder Free Web Design

SQL Basic
SQL HOME SQL Intro SQL Syntax SQL Select SQL Distinct SQL Where SQL And & Or SQL Order By SQL Insert SQL Update SQL Delete

Introduction to SQL
Previous
SQL is a standard language for accessing and manipulating databases.

WEB HOSTING Best Web Hosting

Next Chapter

PHP MySQL Hosting Top 10 Web Hosting UK Reseller Hosting C loud Hosting

What is SQL?
SQL stands for Structured Query Language SQL lets you access and manipulate databases SQL is an ANSI (American National Standards Institute) standard

Top Web Hosting $6.93 Domain w/ Extras C heap Web Hosting WEB BUILDING XML Editor Free Trial! FREE Flash Website Free Website Templates Free WordPress Themes W3SCHOOLS EXAMS Get C ertified in: HTML, C SS, JavaScript, XML, PHP, and ASP W3SCHOOLS BOOKS New Books: HTML, C SS JavaScript, and Ajax STATISTICS Browser Statistics Browser OS Browser Display SHARE THIS PAGE Share with

SQL Demo
SQL Try It

SQL Advanced
SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL Top Like Wildcards In Between Alias Joins Inner Join Left Join Right Join Full Join Union Select Into Create DB Create Table Constraints Not Null Unique Primary Key Foreign Key Check Default Create Index Drop Alter Increment Views Dates Nulls isnull() Data Types

What Can SQL do?


SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL can can can can can can can can can can execute queries against a database retrieve data from a database insert records in a database update records in a database delete records from a database create new databases create new tables in a database create stored procedures in a database create views in a database set permissions on tables, procedures, and views

SQL is a Standard - BUT....


Although SQL is an ANSI (American National Standards Institute) standard, there are many different versions of the SQL language. However, to be compliant with the ANSI standard, they all support at least the major commands (such as SELECT, UPDATE, DELETE, INSERT, WHERE) in a similar manner. Note: Most of the SQL database programs also have their own proprietary extensions in addition to the SQL standard!

Using SQL in Your Web Site


To build a web site that shows some data from a database, you will need the following: An RDBMS database program (i.e. MS Access, SQL Server, MySQL) A server-side scripting language, like PHP or ASP SQL HTML / CSS

SQL Functions
SQL Functions SQL avg() SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL count() first() last() max() min() sum() Group By Having ucase() lcase() mid() len() round() now() format()

RDBMS
RDBMS stands for Relational Database Management System. RDBMS is the basis for SQL, and for all modern database systems like MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access. The data in RDBMS is stored in database objects called tables. A table is a collections of related data entries and it consists of columns and rows.

Previous

Next Chapter

Free Online Website Builder - No Downloading Needed


Create a free Flash website with our simple, online web design editing platform. Stunning templates and user-friendly tools make website building easy and fun. Start Creating your free website now!

SQL Quick Ref SQL Hosting SQL Summary

SQL Quiz
SQL Quiz

Altova MapForce Graphical XML Conversion Tool from the Developers of XMLSpy

Need an easy way to get data into XML, or transform XML to another format? MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data. Then it transforms data instantly or auto-generates royalty-free code for recurrent conversions. New features in Version 2011! Easy-to-use, graphical data mapping interface

Easy-to-use, graphical data mapping interface Instant data transformation XSLT 1.0/2.0 and XQuery code generation Java, C#, and C++ code generation Advanced data processing functions Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more Integration with Altova StyleVision for report rendering Visual Studio & Eclipse integration Available in 32-bit and 64-bit versions Download a fully-functional trial today!

HO ME

TO P

P RI N T

FO RU M

A BO U T

W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrent full correctnes of all content. While using this site, you agree to have read and accepted our terms of use and privacy policy. C opyright 1999-2011 by Refsnes Data. All Rights Reserved.

You might also like