11. The Summary
11
1. Introduction About database.
2. History.
3. Processing database by using MySQL :
• How to create a table in database?
• How to insert data in the created table?
• Showing data by using ‘ where(condition) ’ .
1- take attendance .
2- hi how are you .
3-Mr Inad and me are going to introduce HTML and CSS ,and we hope everybody focus with us, because that is benefit to you and your future
now we are going to explain you introduction about database and database history and how can we create table into database and how can we insert table into database how to delete row of table after that we will give you a quiz then will give you summary about what we explained .
Does anyone upload files ,pictures or videos into any website ? Yes.yes. Did you ask your self, where did the pictures or videos store in the website? So, our topic will talk about that.
I am going to show the content about what we are going to explain you First …………..
What do you know about database?
MySQL is a database management system
MySQL is defined as a database, and it is a method to save the data. Data base is composed of tables and the tables composed of columns and rows.
Table
It is a largest part in database, and it has columns and rows contain values.
Column
Each column in the table has its own name, and each columns must has kind of data which describe the data that will be stored in column.
From up to down . Represent information types.
Rows:
Each row of the table rows contains different values, and that values represent information on specific sector.
From left to right. Represent the information.
Keys:
Keys are a method to access to information in database quickly.
MySQL can work in many platforms like Mak, Windows and Linux. It is open source.
Example :
In your office you have a desk ,and the desk is your database in the first drawer ,you save your pictures and in the second drawer you save your videos tapes ,and in the third drawer you save your paper .so the database works like this and the database works fast and organize the data. +example of drop box (in next slide).
example on database :
The user goes to the drop box to download picture or video ,but the drop box is just web site ,it has database ,its database saves everything in the drop box , so the user goes to the drop box to download picture and the drop box goes to its database to bring the picture .
This man his name is Edgar Frank and he was an English computer scientist who, while working for IBM, he invented the relational model for database management and the theoretical basis for relational databases in 1970 .
This is the instruction sheet , it tells how to enter to the MYSQL program ,and it has some information about what we will explain.
We have database and the database has tables as you see in the slide. As you know the table includes columns ,rows and records. And each column has specific type like int and char . Now I need student , (let’s say this man is the the database and it has a table and I am the create table code the user wants me to create table with some columns which are first create id column and its type is integer . second create name column and its type is varchar with length of word is 8 characters and create age column its type is integer ). You have just tree minutes
5+3.
Now we want to show our data which created in the table ,how can I show the data ? First ,I have to use select statement (in explain) statement and then write column name and from (from what) the table that I want to take from it the information . So the code is …….. . 2+You have just two minutes
Now I going to show you how can I insert the data into created table , so I will use insertion code it is call ‘inset’ which insert data into the table ‘
now I need student ( lets say I’m the insert code and this student is the database , and the database has student table and the table has three created columns which are ID ,NAME and AGE .
Now I want to insert data inside the table. ( the user wants the ID is 111 and the name is haiakl and the age is 31 ) so this is the first row
Now I want to add the second row . It has the id number, it is 222 and the name is osama and the age is 5 years )so this is the second row .
now I will explain the code on the whiteboard ……………….
Lets do it on the computer by using MySQL
You have just tree minutes .
As I have explained select statement ,can anyone write on the whiteboard the select code which gives all information in the table?.... now I will just add the condition ,and the condition will give me specific information.. .example on condition is id=111; +5+3.
Lets do it on the computer by using MySQL
You have just tree minutes .