Presentation is loading. Please wait.

Presentation is loading. Please wait.

MySQL安裝&操作教學.

Similar presentations


Presentation on theme: "MySQL安裝&操作教學."— Presentation transcript:

1 MySQL安裝&操作教學

2 Outline 下載Mysql 5.0版 MySQL安裝教學 MySQL操作教學 資料庫管理

3 1. 下載Mysql 5.0版 下載Mysql 5.0版 資料庫管理

4 2. MySQL安裝教學 (1/5) 資料庫管理

5 2. MySQL安裝教學 (2/5) 資料庫管理

6 2. MySQL安裝教學 (3/5) 資料庫管理

7 2. MySQL安裝教學 (4/5) 資料庫管理

8 2. MySQL安裝教學 (5/5) 資料庫管理

9 3. MySQL操作教學 (1/15) 執行MySQL程式 資料庫管理

10 3. MySQL操作教學 (2/15) 輸入root密碼 資料庫管理

11 3. MySQL操作教學 (3/15) Setup a new database
SQL> create database database02; 資料庫管理

12 3. MySQL操作教學 (4/15) Open the database SQL> use database02; 資料庫管理

13 3. MySQL操作教學 (5/15) Create a table
SQL> create table table01 (field01 integer, field02 char(10)); 資料庫管理

14 3. MySQL操作教學 (6/15) List the tables SQL> show tables; 資料庫管理

15 3. MySQL操作教學 (7/15) List the fields in a table
SQL> show columns from table01; 資料庫管理

16 3. MySQL操作教學 (8/15) Insert a record
SQL> insert into table01 (field01, field02) values (1, ‘las'); 資料庫管理

17 3. MySQL操作教學 (9/15) List all the records select * from table01; 資料庫管理

18 3. MySQL操作教學 (10/15) Adding fields SQL> Select * from table01;
SQL> alter table table01 add column field03 char(20); SQL> alter table table01 add column field04 date, add column field05 time; SQL> Select * from table01; 資料庫管理

19 3. MySQL操作教學 (11/15) Insert records into the table
SQL> insert into table01 (field01,field02,field03,field04,field05) values (2, ‘eddy', ‘ ', ‘ ', '16:00:00'); 資料庫管理

20 3. MySQL操作教學 (12/15) SQL> select * from table01; 資料庫管理

21 3. MySQL操作教學 (13/15) Updating existing records
SQL> update table01 set field03= ' where field01=1; 資料庫管理

22 3. MySQL操作教學 (14/15) Deleting records
SQL> delete from table01 where field01=2; 資料庫管理

23 3. MySQL操作教學 (15/15) Quit quit 資料庫管理


Download ppt "MySQL安裝&操作教學."

Similar presentations


Ads by Google