MySQL Is a  relational database management system  (RDBMS)  that runs as a server providing multi-user access to a number of databases. 1.Basic Queries 2.Porcedures and Functions 3.Imports and Exports
Basic Query Commands in MySQL CREATE Command   SELECT Command   DELETE Command   INSERT Command   UPDATE Command DROP Command
CREATE Command  The Create command is used to create a table by specifying the tablename, fieldnames and constraints as shown below : Syntax : $createSQL=("CREATE TABLE tblName");
SELECT Command The Select command is used to select the records from a table using its field names. To select all the fields in a table, '*' is used in the command. The result is assigned to a variable name as shown below: Syntax: $selectSQL=("SELECT field_names FROM tablename");
DELETE Command The Delete command is used to delete the records from a table using conditions as shown below: Syntax: $deleteSQL=("DELETE * FROM tablename WHERE condition");
INSERT Command The Insert command is used to insert records into a table. The values are assigned to the field names as shown below: Syntax: $insertSQL=("INSERT INTO tblname(fieldname1,fieldname2..) VALUES(value1,value2,...) ");
UPDATE Command The Update command is used to update the field values using conditions. This is done using 'SET' and the fieldnames to assign new values to them. Syntax: $updateSQL=("UPDATE Tblname SET (fieldname1=value1,fieldname2=value2,...) WHERE fldstudid=IdNumber"); .
DROP Command The Drop command is used to delete all the records in a table using the table name as shown below: Syntax: $dropSQL=("DROP tblName");
PROCEDURE AND FUNCTIONS Procedures  The procedure is a program that performs an action and does not return a value (outside of IN OUT and OUT parameters).  Functions The function is a program that might perform an action and does return a value.
A procedure is declared as:   CREATE OR REPLACE PROCEDURE()  AS BEGIN  END; Procedure Syntax
Functions Syntax A function is declared as :  CREATE OR REPLACE FUNCTION() RETURN  AS BEGIN RETURN  END;
It can be used to back up a database or to move database information from one server to another. It can be used to back up a database or to move database information from one server to another. It can be used to back up a database or to move database information from one server to another. IMPORT AND EXPORT
This example shows  how to export a database. It is a good idea to export the data often as a backup. # mysqldump -u username -ppassword database_name > FILE.sql  Replace username, password and database_name with your MySQL username, password and database name. 1.Export A MySQL Database:
Here, we import a database. Using this to restore data from a backup or to import from another MySQL server. Start by uploading the FILE.sql file to the server where we will be running this command. # mysql -u username -ppassword database_name < FILE.sql  2. Import A MySQL Database:

More Related Content

ODP
My sql Syntax
ODP
Prabu's sql quries
PPTX
System performance tuning
PPTX
Cake PHP 3 Presentaion
ODP
ODP
PPTX
Oracle: PLSQL Introduction
My sql Syntax
Prabu's sql quries
System performance tuning
Cake PHP 3 Presentaion
Oracle: PLSQL Introduction

What's hot (18)

PPTX
My sql command line client
ODP
Mysqlppt
PPTX
Oracle: DDL
PDF
Introduction to php database connectivity
PPT
Database presentation
PDF
Doctrine in FLOW3
PPT
MYSQL
PPTX
Mapping and listing with mule
PDF
Sql views, stored procedure, functions
PPTX
Oracle: DML
PPTX
Mapping and listing with mule
PPTX
Customizing the unix environment
PPTX
Mapping and listing in mule
PDF
SQL Queries - DDL Commands
PPTX
Oracle: PLSQL Commands
PPT
PHP - Getting good with MySQL part II
PPTX
Database Connectivity in PHP
My sql command line client
Mysqlppt
Oracle: DDL
Introduction to php database connectivity
Database presentation
Doctrine in FLOW3
MYSQL
Mapping and listing with mule
Sql views, stored procedure, functions
Oracle: DML
Mapping and listing with mule
Customizing the unix environment
Mapping and listing in mule
SQL Queries - DDL Commands
Oracle: PLSQL Commands
PHP - Getting good with MySQL part II
Database Connectivity in PHP

Viewers also liked (20)

PDF
working with database using mysql
DOCX
DBMS lab manual
PDF
Web app development_my_sql_08
PPT
Mysql classes in navi-mumbai,mysql course-provider-in-navi-mumbai
PPT
Mysql
PPT
Diva10
PPT
PPS
Execute MySQL query using command prompt
PDF
MySQL Utilities -- PyTexas 2015
PPTX
Beginner guide to mysql command line
PPT
Mysql ppt
DOC
DBMS Practical File
PDF
Basic concepts for_clustered_data_ontap_8.3_v1.1-lab_guide
PPT
Mysql Ppt
ODP
lamp technology
PPT
Dbms
PPT
PPT
MySql slides (ppt)
PPT
EGL Conference 2011 - Technical Workshop
PDF
CBSE XII Database Concepts And MySQL Presentation
working with database using mysql
DBMS lab manual
Web app development_my_sql_08
Mysql classes in navi-mumbai,mysql course-provider-in-navi-mumbai
Mysql
Diva10
Execute MySQL query using command prompt
MySQL Utilities -- PyTexas 2015
Beginner guide to mysql command line
Mysql ppt
DBMS Practical File
Basic concepts for_clustered_data_ontap_8.3_v1.1-lab_guide
Mysql Ppt
lamp technology
Dbms
MySql slides (ppt)
EGL Conference 2011 - Technical Workshop
CBSE XII Database Concepts And MySQL Presentation

Similar to My sql (20)

PPT
PPT
Raj mysql
PPT
My sql with querys
PPT
My sql presentation
PPT
MySQL Database System Hiep Dinh
PPT
mysqlHiep.ppt
ODP
PPT
ODP
Mysql1
PPTX
Getting Started with MySQL I
PDF
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
PPT
MySQL and its basic commands
PPTX
Using Mysql.pptx
PPT
PPT
Mysql
PPTX
ADV PPT 2 LAB.pptx
Raj mysql
My sql with querys
My sql presentation
MySQL Database System Hiep Dinh
mysqlHiep.ppt
Mysql1
Getting Started with MySQL I
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
MySQL and its basic commands
Using Mysql.pptx
Mysql
ADV PPT 2 LAB.pptx

Recently uploaded (20)

PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PDF
substrate PowerPoint Presentation basic one
PDF
Identification of potential depression in social media posts
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PDF
Build Real-Time ML Apps with Python, Feast & NoSQL
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PPTX
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Altius execution marketplace concept.pdf
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PDF
Streamline Vulnerability Management From Minimal Images to SBOMs
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
substrate PowerPoint Presentation basic one
Identification of potential depression in social media posts
Early detection and classification of bone marrow changes in lumbar vertebrae...
Build Real-Time ML Apps with Python, Feast & NoSQL
Lung cancer patients survival prediction using outlier detection and optimize...
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
Co-training pseudo-labeling for text classification with support vector machi...
Rapid Prototyping: A lecture on prototyping techniques for interface design
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Altius execution marketplace concept.pdf
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
Streamline Vulnerability Management From Minimal Images to SBOMs

My sql

  • 1. MySQL Is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. 1.Basic Queries 2.Porcedures and Functions 3.Imports and Exports
  • 2. Basic Query Commands in MySQL CREATE Command SELECT Command DELETE Command INSERT Command UPDATE Command DROP Command
  • 3. CREATE Command The Create command is used to create a table by specifying the tablename, fieldnames and constraints as shown below : Syntax : $createSQL=(&quot;CREATE TABLE tblName&quot;);
  • 4. SELECT Command The Select command is used to select the records from a table using its field names. To select all the fields in a table, '*' is used in the command. The result is assigned to a variable name as shown below: Syntax: $selectSQL=(&quot;SELECT field_names FROM tablename&quot;);
  • 5. DELETE Command The Delete command is used to delete the records from a table using conditions as shown below: Syntax: $deleteSQL=(&quot;DELETE * FROM tablename WHERE condition&quot;);
  • 6. INSERT Command The Insert command is used to insert records into a table. The values are assigned to the field names as shown below: Syntax: $insertSQL=(&quot;INSERT INTO tblname(fieldname1,fieldname2..) VALUES(value1,value2,...) &quot;);
  • 7. UPDATE Command The Update command is used to update the field values using conditions. This is done using 'SET' and the fieldnames to assign new values to them. Syntax: $updateSQL=(&quot;UPDATE Tblname SET (fieldname1=value1,fieldname2=value2,...) WHERE fldstudid=IdNumber&quot;); .
  • 8. DROP Command The Drop command is used to delete all the records in a table using the table name as shown below: Syntax: $dropSQL=(&quot;DROP tblName&quot;);
  • 9. PROCEDURE AND FUNCTIONS Procedures The procedure is a program that performs an action and does not return a value (outside of IN OUT and OUT parameters). Functions The function is a program that might perform an action and does return a value.
  • 10. A procedure is declared as: CREATE OR REPLACE PROCEDURE() AS BEGIN END; Procedure Syntax
  • 11. Functions Syntax A function is declared as : CREATE OR REPLACE FUNCTION() RETURN AS BEGIN RETURN END;
  • 12. It can be used to back up a database or to move database information from one server to another. It can be used to back up a database or to move database information from one server to another. It can be used to back up a database or to move database information from one server to another. IMPORT AND EXPORT
  • 13. This example shows  how to export a database. It is a good idea to export the data often as a backup. # mysqldump -u username -ppassword database_name > FILE.sql Replace username, password and database_name with your MySQL username, password and database name. 1.Export A MySQL Database:
  • 14. Here, we import a database. Using this to restore data from a backup or to import from another MySQL server. Start by uploading the FILE.sql file to the server where we will be running this command. # mysql -u username -ppassword database_name < FILE.sql 2. Import A MySQL Database: