SlideShare a Scribd company logo
MySQL is a relational database management system ( RDBMS ) and which runs a server, providing multi-user access to a number of databases.
MySQL is currently the most popular o pen source  database server in existence.  MY SQL
For example: SELECT * FROM table; Where  'SELECT',  'FROM' and  'table'  are in  English,   but  '*'  is a  symbol  that means all.
USES: Many web applications use MySQL as the  database component of a  LAMP  software stack.
Its popularity for use with web applications is  closely tied to the popularity of  PHP , which is  often combined with MySQL.
Several  high-traffic web sites  includes: Flickr,
Facebook,
Wikipedia,
Google,
Nokia and
YouTube  use  MySQL  for data storage and logging of user data.
CREATE  Command - is used to  create  a  database/table.
SELECT  Command - is used to  retrieve  data from  the database.
DELETE  Command - is used to  delete  data from t  the database. . BASIC QUERIES COMMANDS
INSERT  Command - is used to  insert  data into a database.
UPDATE  Command - is used to  update  the data in a table.
DROP  Command - is used to  delete or drop  the database/table.
CREATE  Command : The Create command is used to create a table by specifying the tablename, fieldnames and constraints. Syntax: $createSQL=("CREATE TABLE tblName");
SELECT  Command:   It 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. Syntax: $selectSQL=("SELECT field_names FROM tablename");
DELETE  Comman d:   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: It 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: It 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");
Advanced functions and queries that can be useful when building more complex applications. Some of the Advanced queries: *INNER JOIN   *REPLACE *LTRIM,RTRIM  *DATE AND TIME *SIGN  *SQRT *CEILING  *FLOOR ADVANCED QUERIES
INNER JOIN: It is used to retrieve the data from all tables listed based on condition listed after keyword ON.  REPLACE: The REPLACE function searches a character string and replaces characters found in search string with characters listed in replacement Str.
LTRIM: The LTRIM function removes any leading (left-hand) spaces in a character string. RTRIM: The RTRIM function works like LTRIM, but it removes trailing spaces.
SIGN:   The SIGN function takes in a numeric expression and returns the following values based on the sign of the input number: Return Value   Meaning − 1 Input number is negative   0 Input number is zero   1 Input number is positive Null Input number is null
SQRT :   The  SQRT  function takes in a single numeric expression and returns its square root.  CEILING (CEIL): The  CEILING  function returns the smallest integer that is greater than or equal to the value of the numeric expression provided as an input parameter.
FLOOR:   It returns the integer that is less than or equal to the value of the numeric expression provided as an input parameter.
MySQL supports "routines" and there are two  kinds of routines:
stored procedures  or functions
whose return values we use in other SQL  statements.
A stored procedure is a procedure (like a  subprogram in a regular computing language)  that is stored (in the database). PROCEDURES
Ad

More Related Content

What's hot (20)

Trigger and cursor program using sql
Trigger and cursor program using sqlTrigger and cursor program using sql
Trigger and cursor program using sql
Sushil Mishra
 
Procedures/functions of rdbms
Procedures/functions of rdbmsProcedures/functions of rdbms
Procedures/functions of rdbms
jain.pralabh
 
ORACLE PL SQL
ORACLE PL SQLORACLE PL SQL
ORACLE PL SQL
Srinath Maharana
 
Plsql
PlsqlPlsql
Plsql
Mandeep Singh
 
Basic cursors in oracle
Basic cursors in oracleBasic cursors in oracle
Basic cursors in oracle
Suhel Firdus
 
PL-SQL DIFFERENT PROGRAMS
PL-SQL DIFFERENT PROGRAMSPL-SQL DIFFERENT PROGRAMS
PL-SQL DIFFERENT PROGRAMS
raj upadhyay
 
Oracle: PLSQL Introduction
Oracle: PLSQL IntroductionOracle: PLSQL Introduction
Oracle: PLSQL Introduction
DataminingTools Inc
 
Les22[1]Advanced Explicit Cursor Concepts
Les22[1]Advanced Explicit Cursor ConceptsLes22[1]Advanced Explicit Cursor Concepts
Les22[1]Advanced Explicit Cursor Concepts
siavosh kaviani
 
Oracle: PLSQL
Oracle: PLSQLOracle: PLSQL
Oracle: PLSQL
DataminingTools Inc
 
Lab5 sub query
Lab5   sub queryLab5   sub query
Lab5 sub query
Balqees Al.Mubarak
 
Oracle: Cursors
Oracle: CursorsOracle: Cursors
Oracle: Cursors
DataminingTools Inc
 
PLSQL Tutorial
PLSQL TutorialPLSQL Tutorial
PLSQL Tutorial
Quang Minh Đoàn
 
Functions oracle (pl/sql)
Functions oracle (pl/sql)Functions oracle (pl/sql)
Functions oracle (pl/sql)
harman kaur
 
Les18[1]Interacting with the Oracle Server
Les18[1]Interacting with  the Oracle ServerLes18[1]Interacting with  the Oracle Server
Les18[1]Interacting with the Oracle Server
siavosh kaviani
 
PL/SQL Fundamentals I
PL/SQL Fundamentals IPL/SQL Fundamentals I
PL/SQL Fundamentals I
Nick Buytaert
 
Oracle: Basic SQL
Oracle: Basic SQLOracle: Basic SQL
Oracle: Basic SQL
DataminingTools Inc
 
Les09[1]Manipulating Data
Les09[1]Manipulating DataLes09[1]Manipulating Data
Les09[1]Manipulating Data
siavosh kaviani
 
Les16[1]Declaring Variables
Les16[1]Declaring VariablesLes16[1]Declaring Variables
Les16[1]Declaring Variables
siavosh kaviani
 
Oracle: DDL
Oracle: DDLOracle: DDL
Oracle: DDL
DataminingTools Inc
 
Oracle Baisc Tutorial
Oracle Baisc TutorialOracle Baisc Tutorial
Oracle Baisc Tutorial
bunny0143
 

Viewers also liked (6)

Php1
Php1Php1
Php1
poornima sugumaran
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
poornima sugumaran
 
Zend Server
Zend ServerZend Server
Zend Server
Jagat Kothari
 
Php1
Php1Php1
Php1
poornima sugumaran
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
poornima sugumaran
 
Introducing drupal
Introducing  drupalIntroducing  drupal
Introducing drupal
Gokul Muralidharan
 
Ad

Similar to Mysqlppt (20)

My sql.ppt
My sql.pptMy sql.ppt
My sql.ppt
MAGNA COLLEGE OF ENGINEERING
 
My sql with querys
My sql with querysMy sql with querys
My sql with querys
NIRMAL FELIX
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETE
Abrar ali
 
Mysql1
Mysql1Mysql1
Mysql1
rajikaa
 
MYSQL
MYSQLMYSQL
MYSQL
ARJUN
 
Sq lite
Sq liteSq lite
Sq lite
Revuru Bharadwaja
 
Mysql
MysqlMysql
Mysql
Rathan Raj
 
Database programming
Database programmingDatabase programming
Database programming
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Complete SQL in one video by shradha.pdf
Complete SQL in one video by shradha.pdfComplete SQL in one video by shradha.pdf
Complete SQL in one video by shradha.pdf
rahulashu699
 
Oracle notes
Oracle notesOracle notes
Oracle notes
Prashant Dadmode
 
PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slides
metsarin
 
Sql Queries
Sql QueriesSql Queries
Sql Queries
webicon
 
Introduction to sql new
Introduction to sql newIntroduction to sql new
Introduction to sql new
SANTOSH RATH
 
Structure Query Language Advance Training
Structure Query Language Advance TrainingStructure Query Language Advance Training
Structure Query Language Advance Training
parisaxena1418
 
Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007
paulguerin
 
Database development coding standards
Database development coding standardsDatabase development coding standards
Database development coding standards
Alessandro Baratella
 
sql.pptx
sql.pptxsql.pptx
sql.pptx
slavskrillex
 
Unit 2 web technologies
Unit 2 web technologiesUnit 2 web technologies
Unit 2 web technologies
tamilmozhiyaltamilmo
 
Mysql Ppt
Mysql PptMysql Ppt
Mysql Ppt
Hema Prasanth
 
Raj mysql
Raj mysqlRaj mysql
Raj mysql
firstplanet
 
Ad

Recently uploaded (20)

apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Political History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptxPolitical History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 

Mysqlppt

  • 1. MySQL is a relational database management system ( RDBMS ) and which runs a server, providing multi-user access to a number of databases.
  • 2. MySQL is currently the most popular o pen source database server in existence. MY SQL
  • 3. For example: SELECT * FROM table; Where 'SELECT', 'FROM' and 'table' are in English, but '*' is a symbol that means all.
  • 4. USES: Many web applications use MySQL as the database component of a LAMP software stack.
  • 5. Its popularity for use with web applications is closely tied to the popularity of PHP , which is often combined with MySQL.
  • 6. Several high-traffic web sites includes: Flickr,
  • 11. YouTube use MySQL for data storage and logging of user data.
  • 12. CREATE Command - is used to create a database/table.
  • 13. SELECT Command - is used to retrieve data from the database.
  • 14. DELETE Command - is used to delete data from t the database. . BASIC QUERIES COMMANDS
  • 15. INSERT Command - is used to insert data into a database.
  • 16. UPDATE Command - is used to update the data in a table.
  • 17. DROP Command - is used to delete or drop the database/table.
  • 18. CREATE Command : The Create command is used to create a table by specifying the tablename, fieldnames and constraints. Syntax: $createSQL=("CREATE TABLE tblName");
  • 19. SELECT Command: It 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. Syntax: $selectSQL=("SELECT field_names FROM tablename");
  • 20. DELETE Comman d: The Delete command is used to delete the records from a table using conditions as shown below: Syntax: $deleteSQL=("DELETE * FROM tablename WHERE condition");
  • 21. INSERT Command: It 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,...) ");
  • 22. UPDATE Command: It 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");
  • 23. 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");
  • 24. Advanced functions and queries that can be useful when building more complex applications. Some of the Advanced queries: *INNER JOIN *REPLACE *LTRIM,RTRIM *DATE AND TIME *SIGN *SQRT *CEILING *FLOOR ADVANCED QUERIES
  • 25. INNER JOIN: It is used to retrieve the data from all tables listed based on condition listed after keyword ON. REPLACE: The REPLACE function searches a character string and replaces characters found in search string with characters listed in replacement Str.
  • 26. LTRIM: The LTRIM function removes any leading (left-hand) spaces in a character string. RTRIM: The RTRIM function works like LTRIM, but it removes trailing spaces.
  • 27. SIGN: The SIGN function takes in a numeric expression and returns the following values based on the sign of the input number: Return Value Meaning − 1 Input number is negative 0 Input number is zero 1 Input number is positive Null Input number is null
  • 28. SQRT : The SQRT function takes in a single numeric expression and returns its square root. CEILING (CEIL): The CEILING function returns the smallest integer that is greater than or equal to the value of the numeric expression provided as an input parameter.
  • 29. FLOOR: It returns the integer that is less than or equal to the value of the numeric expression provided as an input parameter.
  • 30. MySQL supports "routines" and there are two kinds of routines:
  • 31. stored procedures or functions
  • 32. whose return values we use in other SQL statements.
  • 33. A stored procedure is a procedure (like a subprogram in a regular computing language) that is stored (in the database). PROCEDURES
  • 34. A stored procedure has a name, a parameter list, and an SQL statement, which can contain many more SQL statements.
  • 36. The general syntax of Creating a Stored Procedure is : CREATE PROCEDURE proc_name ([proc_parameter[......]]) routine_body
  • 37. proc_name : procedure name
  • 38. proc_parameter : [ IN | OUT | INOUT ] param_name type
  • 39. routine_body : Valid SQL procedure statement
  • 40. An IN parameter is used to pass value into procedure.
  • 41. An INOUT parameter is initialized by the caller and it can be modified by the procedure.
  • 42. Functions can return string, integer, or real values and can accept arguments of same types.
  • 43. We can define simple functions that operate on a single row at a time, or aggregate functions that operate on groups of rows.
  • 44. Information is provided to functions that enables them to check the number, types, and names of the arguments passed to them. FUNCTIONS
  • 45. CREATE FUNCTION Syntax: CREATE FUNCTION func_name ([func_parameter[,...]]) RETURNS type routine_body
  • 46. func_name : Function name func_parameter : param_name type type : Any valid MySQL datatype routine_body : Valid SQL procedure statement The RETURN clause is mandatory for FUNCTION. It used to indicate the return type of function.
  • 47. List of all important MySQL functions. MySQL Group By Clause - It means of grouping the result dataset by certain database table column(s).
  • 48. MySQL IN Clause - used alongwith any MySQL query to specify a condition.
  • 49. MySQL BETWEEN Clause - used to specify a condition.
  • 50. MySQL UNION Keyword - Use a UNION operation to combine multiple result sets into one.
  • 51. MySQL COUNT Function - used to count the number of rows in a database table.
  • 52. MySQL MAX Function - allows us to select the highest (maximum) value for a certain column.
  • 53. MySQL RAND Function - used to generate a random number using MySQL command.
  • 54. MySQL CONCAT Function - used to concatenate any string inside any MySQL command.
  • 55. MySQL DATE and Time Function - Complete list of MySQL Date and Time related functions.
  • 56. MySQL MIN Function - allows us to select the lowest (minimum) value for a certain column.
  • 57. MySQL AVG Function - selects the average value for certain table column.
  • 58. MySQL SUM Function - allows selecting the total for a numeric column.
  • 59. MySQL SQRT Function -generate a square root of a given number.
  • 60. What's the Difference Between a Stored Procedure and a Stored Function? It is same as the difference between a subroutine and a function: a stored procedure runs some code stored function runs some code and then returns a result.
  • 61. Why Use Stored Procedures and Stored Functions? The real advantage to using stored procedures and stored functions is that they provide functionality which is platform and application independant.
  • 62. It can be used to back up a database or to move database information from one server to another. 1.Export A MySQL Database: It is a good idea to export the data often as a backup. IMPORT AND EXPORT
  • 63. This example shows how to export a database. # mysqldump -u username -ppassword database_name > FILE.sql Replace username, password and database_name with your MySQL username, password and database name.File FILE.sql now holds a backup of your database, download it to your computer.
  • 64. 2. Import 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