SlideShare a Scribd company logo
About MySQL Introduction to SQL: SQL is a standard language for accessing and manipulating databases. 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
What Can MySQL do? *  SQL can execute queries against a database * SQL can retrieve data from a database * SQL can insert records in a database * SQL can update records in a database * SQL can delete records from a database * SQL can create new databases * SQL can create new tables in a database * SQL can create stored procedures in a database * SQL can create views in a database * SQL can 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
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.
SQL Syntax
Database Tables A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data. _Id  LastName  FirstName  Address  City 1  David   Raj  T Nagar 10  Sandnes 2  Davidson  Paul Bengalur23  Sandnes 3  Narendran  Raj  Salem   20  Stavanger
Keep in Mind That... SQL is not case sensitive
Semicolon after SQL Statements? Some database systems require a semicolon at the end of each SQL statement. Semicolon is the standard way to separate each SQL statement in database systems that allow more than one SQL statement to be executed in the same call to the server.
SQL Types SQL can be divided into two parts:  The Data Manipulation Language (DML) The Data Definition Language (DDL)
DML Statements The query and update commands form the DML part of SQL: * SELECT - extracts data from a database * UPDATE - updates data in a database * DELETE - deletes data from a database * INSERT INTO - inserts new data into a database
DDL Statements The DDL part of SQL permits database tables to be created or deleted. It also define indexes (keys), specify links between tables, and impose constraints between tables. The most important DDL statements in SQL are: * CREATE DATABASE - creates a new database * ALTER DATABASE - modifies a database * CREATE TABLE - creates a new table * ALTER TABLE - modifies a table * DROP TABLE - deletes a table * CREATE INDEX - creates an index (search key) * DROP INDEX - deletes an index
 
 
 

More Related Content

PPTX
Introduction to SQL
DOC
Oracle vs. MS SQL Server
PPTX
DEE 431 Introduction to Mysql Slide 3
PPT
Presentation1
PPTX
What is SQL Server?
PPT
MySQL and its basic commands
ODP
Ms sql-server
PPTX
Introducing ms sql_server_updated
Introduction to SQL
Oracle vs. MS SQL Server
DEE 431 Introduction to Mysql Slide 3
Presentation1
What is SQL Server?
MySQL and its basic commands
Ms sql-server
Introducing ms sql_server_updated

What's hot (19)

PDF
Database Systems - Introduction to SQL (Chapter 3/1)
PPT
MYSQL.ppt
PPTX
My sql vs sql
PPTX
MDF and LDF in SQL Server
PDF
Sql a practical introduction
PPTX
Sql server basics
PPTX
Sqlite
ODP
Introduction4 SQLite
PPTX
Oracle Database | Computer Science
PPTX
PPT
Sql server basics
PPTX
Structured query language
DOC
DBMS Practical File
PPTX
Presentation slides of Sequence Query Language (SQL)
PPT
Sqlite
PDF
Introduction to the Structured Query Language SQL
PPTX
Sql - Structured Query Language
PPTX
Sql server 2012 dba online training
Database Systems - Introduction to SQL (Chapter 3/1)
MYSQL.ppt
My sql vs sql
MDF and LDF in SQL Server
Sql a practical introduction
Sql server basics
Sqlite
Introduction4 SQLite
Oracle Database | Computer Science
Sql server basics
Structured query language
DBMS Practical File
Presentation slides of Sequence Query Language (SQL)
Sqlite
Introduction to the Structured Query Language SQL
Sql - Structured Query Language
Sql server 2012 dba online training
Ad

Viewers also liked (9)

PPT
0105 abap programming_overview
PDF
Sap fico Study material
PDF
Sap basis made easy
PDF
Sap basis administration handbook
PPTX
SAP Controlling overview
DOCX
BI Apps Reports-Cognos,Crystal Reports & SSRS 2012
DOC
SAP CO Configuration Guide - Exclusive Document
PDF
SAP BASIS ONLINE TRAINING MATERIAL by Keylabs
PDF
Exclusive SAP Basis Training Book | www.sapdocs.info
0105 abap programming_overview
Sap fico Study material
Sap basis made easy
Sap basis administration handbook
SAP Controlling overview
BI Apps Reports-Cognos,Crystal Reports & SSRS 2012
SAP CO Configuration Guide - Exclusive Document
SAP BASIS ONLINE TRAINING MATERIAL by Keylabs
Exclusive SAP Basis Training Book | www.sapdocs.info
Ad

Similar to MySQL intro (20)

PDF
SQL Complete Tutorial. All Topics Covered
PPTX
introduction to SQL query language beginner.ppt
PDF
Sql tutorial
PPTX
Lecture 4-RDBMS.pptx
PDF
Sq lite module5
PPTX
lovely
PPTX
unit-ii.pptx
PPTX
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
PPTX
shs tvl ict_Programming Introduction to SQl.pptx
PPTX
PPTX
SQL PPT.pptx
PPTX
MySQL(PLSQL) Syllabus and SQL vs SQL * plus Session - 01.pptx
PPTX
Sql in dbms
PPTX
Getting Started with MySQL I
PPTX
Using Basic Structured Query Language lo1.pptx
PPTX
slides about : Introduction_to_SQL.pptx
PPTX
Introduction to SQL.pptx
PDF
Oracle SQL Part1
PPTX
20190326165338_ISYS6508-PPT5-W5-S6-R0.pptx
PDF
Reviewing SQL Concepts
SQL Complete Tutorial. All Topics Covered
introduction to SQL query language beginner.ppt
Sql tutorial
Lecture 4-RDBMS.pptx
Sq lite module5
lovely
unit-ii.pptx
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
shs tvl ict_Programming Introduction to SQl.pptx
SQL PPT.pptx
MySQL(PLSQL) Syllabus and SQL vs SQL * plus Session - 01.pptx
Sql in dbms
Getting Started with MySQL I
Using Basic Structured Query Language lo1.pptx
slides about : Introduction_to_SQL.pptx
Introduction to SQL.pptx
Oracle SQL Part1
20190326165338_ISYS6508-PPT5-W5-S6-R0.pptx
Reviewing SQL Concepts

Recently uploaded (20)

DOCX
mcsp232projectguidelinesjan2023 (1).docx
PPTX
Overview Planner of Soft Skills in a single ppt
PPTX
ESD MODULE-5hdbdhbdbdbdbbdbdbbdndbdbdbdbbdbd
PPTX
PE3-WEEK-3sdsadsadasdadadwadwdsdddddd.pptx
DOCX
How to Become a Criminal Profiler or Behavioural Analyst.docx
PDF
Why Today’s Brands Need ORM & SEO Specialists More Than Ever.pdf
PPTX
Your Guide to a Winning Interview Aug 2025.
PPTX
Job-opportunities lecture about it skills
PDF
Sales and Distribution Managemnjnfijient.pdf
PPTX
Nervous_System_Drugs_PPT.pptxXXXXXXXXXXXXXXXXX
PDF
Josh Gao Strength to Strength Book Summary
PDF
MCQ Practice CBT OL Official Language 1.pptx.pdf
PDF
esg-supply-chain-webinar-nov2018hkhkkh.pdf
DOC
field study for teachers graduating samplr
PPTX
internship presentation of bsnl in colllege
PPTX
Discovering the LMA Course by Tim Han.pptx
PPTX
cse couse aefrfrqewrbqwrgbqgvq2w3vqbvq23rbgw3rnw345
PDF
シュアーイノベーション採用ピッチ資料|Company Introduction & Recruiting Deck
PPTX
microtomy kkk. presenting to cryst in gl
PPTX
Surgical thesis protocol formation ppt.pptx
mcsp232projectguidelinesjan2023 (1).docx
Overview Planner of Soft Skills in a single ppt
ESD MODULE-5hdbdhbdbdbdbbdbdbbdndbdbdbdbbdbd
PE3-WEEK-3sdsadsadasdadadwadwdsdddddd.pptx
How to Become a Criminal Profiler or Behavioural Analyst.docx
Why Today’s Brands Need ORM & SEO Specialists More Than Ever.pdf
Your Guide to a Winning Interview Aug 2025.
Job-opportunities lecture about it skills
Sales and Distribution Managemnjnfijient.pdf
Nervous_System_Drugs_PPT.pptxXXXXXXXXXXXXXXXXX
Josh Gao Strength to Strength Book Summary
MCQ Practice CBT OL Official Language 1.pptx.pdf
esg-supply-chain-webinar-nov2018hkhkkh.pdf
field study for teachers graduating samplr
internship presentation of bsnl in colllege
Discovering the LMA Course by Tim Han.pptx
cse couse aefrfrqewrbqwrgbqgvq2w3vqbvq23rbgw3rnw345
シュアーイノベーション採用ピッチ資料|Company Introduction & Recruiting Deck
microtomy kkk. presenting to cryst in gl
Surgical thesis protocol formation ppt.pptx

MySQL intro

  • 1. About MySQL Introduction to SQL: SQL is a standard language for accessing and manipulating databases. 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
  • 2. What Can MySQL do? * SQL can execute queries against a database * SQL can retrieve data from a database * SQL can insert records in a database * SQL can update records in a database * SQL can delete records from a database * SQL can create new databases * SQL can create new tables in a database * SQL can create stored procedures in a database * SQL can create views in a database * SQL can set permissions on tables, procedures, and views
  • 3. 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!
  • 4. 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
  • 5. 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.
  • 7. Database Tables A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data. _Id LastName FirstName Address City 1 David Raj T Nagar 10 Sandnes 2 Davidson Paul Bengalur23 Sandnes 3 Narendran Raj Salem 20 Stavanger
  • 8. Keep in Mind That... SQL is not case sensitive
  • 9. Semicolon after SQL Statements? Some database systems require a semicolon at the end of each SQL statement. Semicolon is the standard way to separate each SQL statement in database systems that allow more than one SQL statement to be executed in the same call to the server.
  • 10. SQL Types SQL can be divided into two parts: The Data Manipulation Language (DML) The Data Definition Language (DDL)
  • 11. DML Statements The query and update commands form the DML part of SQL: * SELECT - extracts data from a database * UPDATE - updates data in a database * DELETE - deletes data from a database * INSERT INTO - inserts new data into a database
  • 12. DDL Statements The DDL part of SQL permits database tables to be created or deleted. It also define indexes (keys), specify links between tables, and impose constraints between tables. The most important DDL statements in SQL are: * CREATE DATABASE - creates a new database * ALTER DATABASE - modifies a database * CREATE TABLE - creates a new table * ALTER TABLE - modifies a table * DROP TABLE - deletes a table * CREATE INDEX - creates an index (search key) * DROP INDEX - deletes an index
  • 13.  
  • 14.  
  • 15.