Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

GROUP-4-Database-Connectivity-with-MySqL.pptx

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Wird geladen in …3
×

Hier ansehen

1 von 33 Anzeige
Anzeige

Weitere Verwandte Inhalte

Aktuellste (20)

Anzeige

GROUP-4-Database-Connectivity-with-MySqL.pptx

  1. 1. Database Connectivity with MySqL GROUP 4 M A R Y R O S E S A N O I R E N E J O Y B A T I L L E R S H E Z I E L R E N DO N S H E R YL P U G O Y A C E V A R G AS J A S T I N E G A T D U L A J E R I C H A A M A N J E N E VA P O J A DA S M A R K D I V R E L A N D R E S J I R E L L E P A N A L I G A N R O N A V I L L Q U I M S I N G M A R I A I S A BE L B O R B O N J O H N T H Y R O N C A P U R I H AN
  2. 2. Introduction to MySQL (Batiller) What is a Database? A database is a separate application that stores a collection of data. Each database has one or more distinct APIs for creating, accessing, managing, searching and replicating the data it holds.
  3. 3. MySQL Database MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is developed, marketed and supported by MySQL AB, which is a Swedish company.
  4. 4. An RDBMS is a type of database management system (DBMS) that stores data in a row-based table structure which connects related data elements. RDBMS (Relational Database Management System) (Rendon)
  5. 5. A Relational DataBase Management System (RDBMS) is a software that −  Enables you to implement a database with tables, columns and indexes.  Guarantees the Referential Integrity between rows of various tables.  Updates the indexes automatically.  Interprets an SQL query and combines information from various tables.
  6. 6. DataTypes (Quimsing) Each column in a database table is required to have a name and a data type. It is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing an error. The data type is a guideline for SQL to understand what type of data is expected inside of each column, and it also identifies how SQL will interact with the stored data.
  7. 7. Database Operation (Panaligan) An operational database management system is software that is designed to allow users to easily define, modify, retrieve, and manage data in real- time. SQL statements are divided into two major categories: data definition language (DDL) and data manipulation language (DML).
  8. 8. Database Manipulation Language (DML) Represents a collection of programming languages explicitly used to make changes to the database, such as: CRUD operations to create, read, update and delete data. Using INSERT, SELECT, UPDATE, and DELETE commands.
  9. 9. INSERT (Pojadas) INSERT: Place new rows of data in the database.
  10. 10. SELECT SELECT: Retrieve rows of data.
  11. 11. UPDATE UPDATE: Replace existing values in the database with new values.
  12. 12. DELETE DELETE: Delete rows of data in the database.
  13. 13. SQL Commands (Andres) SQL commands are the instructions used to communicate with a database to perform tasks, functions, and queries with data. SQL commands can be used to search the database and to do other functions like creating tables, adding data to tables, modifying data, and dropping tables.
  14. 14. SELECT and FROM The Select part of a query determines which columns of the data to show in the results.
  15. 15. CREATE It creates a table in the database. You can specify the name of the table and the columns that should be in the table.
  16. 16. UPDATE (Sano) To update a record in a table you use the Update statement.
  17. 17. DELETE Is used to delete a record in a table.
  18. 18. INSERT Is a way to insert data into a table.
  19. 19. PHP Functions for MySQL connectivity and operations (Capurihan) PHP has a rich collection of built in functions for manipulating MySQL databases.
  20. 20. PHP mysql_connect The PHP mysql connect function is used to connect to a MySQL database server.
  21. 21. PHP mysql_select_db (Gatdula) The mysqli_select_db function is used to select a database.
  22. 22. PHP mysql_query The mysqli_query function is used to execute SQL queries. The function can be used to execute the following query types; Insert Select Update delete
  23. 23. JOIN (Borbon) JOIN is an SQL clause used to query and access data from multiple tables, based on logical relationships between those tables.In other words, JOINS indicate how SQL Server should use data from one table to select the rows from another table.
  24. 24. CROSS JOIN The CROSS JOIN is used to generate a paired combination of each row of the first table with each row of the second table. This join type is also known as cartesian join.
  25. 25. INNER JOIN (Vargas) The INNER JOIN selects all rows from both participating tables as long as there is a match between the columns.
  26. 26. OUTER JOIN (Pugoy) The SQL OUTER JOIN returns all rows from both the participating tables which satisfy the join condition along with rows which do not satisfy the join condition. The SQL OUTER JOIN operator (+) is used only on one side of the join condition only.
  27. 27. SELF JOIN (Aman) A self join is a join in which a table is joined with itself (which is also called Unary relationships), especially when the table has a FOREIGN KEY which references its own PRIMARY KEY. To join a table itself means that each row of the table is combined with itself and with every other row of the table.
  28. 28. THANK YOU !

×