Lesson topic: Database Development
Lesson Objectives:
Success Criteria
Knowledge and understanding:
- to know queries for creating and working with single-table database;
- to know what a local server is, its purpose and composition;
Applying:
- write a query to create a single-table database;
- create a single-table database, in constructor mode;
Analysis:
- explain the structure of the created database, according to the SQL query.
Local server is a hosting emulator.
We need it to be able to create a website on your computer, and then transfer it to hosting.
WAMP
XAMPP
DENWER
There are several ways you can access and work with the MySQL database.1 way. Using a command prompt.2 way. Using web applications that allow you to work with a database through a graphical interface.phpMyAdmin — open source web application, which is a web interface for administering MySQL DBMS.
Database «Qazaqstan» consists of one table «Regions»
Table «Regions»
Which field will be primary key?
How many fields in the table “Regions”?
Which data type is necessary to develop structure the table “Regions”?
1. Using the proposed resources, research the process of writing a query to create a single-table database2. Write queries for: :1. Creating a DB “Qazaqstan”2. Creating a table “Regions”3. Adding data to the table “Regions” (You must add at least 5 regions)4. Delete the record where the population is less than 2000005. Update of data (increase population in Nur-Sultan per 1000 people)
Pair work:
1. A query to create a DB «Qazaqstan» :
Answers
Differentiation task1. Develop a DB “Mobile_store” and a table “Clients” by using the interface phpMyAdmin.2. Add the fields Id, Name, Surname, Gender, Phonein the table “Clients”https://metanit.com/web/php/7.1.php
Материалы на данной страницы взяты из открытых источников либо размещены пользователем в соответствии с договором-офертой сайта. Вы можете сообщить о нарушении.