Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to relational databases and MySQL

Similar presentations


Presentation on theme: "Introduction to relational databases and MySQL"— Presentation transcript:

1 Introduction to relational databases and MySQL
MIS 3501 Jeremy Shafer Department of MIS Fox School of Business Temple University

2 Course Overview We are here... MySQL To do:
2 Weeks We are here... HTML & CSS 2 Weeks PHP 3 Weeks PDO 2 weeks To do: Organize your code with MVC (1 week) Work with forms (1 week) Use cookies and sessions (1 week)

3 Overlap with MIS2502 ERD Diagrams

4 Overlap with MIS2502 (2) Schema Diagrams SQL Statements
select productName, listPrice, productCode, categoryName from products, categories where products.categoryID = categories.categoryID AND categoryName = 'Basses';

5 Terminology Schema Diagrams Can you find an example of a ….
primary key foreign key one-to-many relationship many-to-many relationship bridge table

6 Terminology (2) Primary key Columns Rows

7 Primary key Foreign key

8 Column name Data Type Will accept null? productID will automatically increment by one with each new record. This is the level of detail that a developer really needs to get work done.

9 There are a lot more MySQL data types… but knowing these allow you to do everything you need to do in this class, and in many practical situations.

10

11

12

13 RECOMMENDED SYNTAX!

14

15

16

17

18 Yes, you could do it all from the command line…

19 phpMyAdmin This is what we’ll use.

20


Download ppt "Introduction to relational databases and MySQL"

Similar presentations


Ads by Google