1 / 11

Introduction to SQL

Introduction to SQL. By Ping Bai. What is SQL?. Structured Query Language (abbreviated SQL) is a computer language for communication with databases. The statement contains instructions to create, read, change or delete data.

gale
Télécharger la présentation

Introduction to SQL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to SQL By Ping Bai

  2. What is SQL? • Structured Query Language (abbreviated SQL) is a computer language for communication with databases. • The statement contains instructions to create, read, change or delete data. • The universal rules of the language have been established by ANSI (American National Standards Institute). • SQL language is open, meaning it is not owned or controlled by any single company.

  3. What Does SQL Do? • Read existing data • Create new records holding data • Change existing data • Delete data

  4. What Does SQL Not Do? • SQL is not a program or a development environment such as Access or VB. • SQL does not have a back end. • SQL is not a procedural programming language. • SQL does not have its own specific development environment.

  5. A Brief History of SQL • Dr. Codd • System/R in 1978 - IBM • Oracle • Relational Technology’s Ingres • SQL/DS and DB2 in 1982 - IBM

  6. SQL Database Tables

  7. SQL Queries • SELECT LastName FROM Persons;

  8. SQL Data Manipulation Language(DML) • SELECT - extracts data from a database table • UPDATE – updates data in a database table • DELETE – deletes data from a database table • INSERT INTO – inserts new datainto a database table

  9. SQL Data Definition Language(DDL) • CREATE TABLE – creates a new database table • ALTER TABLE – alters a database table • DROP TABLE – deletes a database table • CREATE INDEX – creates an index (search key) • DROP INDEX – delete an index

  10. SQL Tutorials • http://www.geocities.com/SiliconValley/Vista/2207/sql1.html • http://sqlzoo.net/ • http://riki-lb1.vet.ohio-state.edu/mqlin/computec/tutorials/SQLTutorial.htm

  11. THE END

More Related