Register 3 MYSQL Developer Zone 5 MYSQL Download

  • Slides: 32
Download presentation

成為會員 Register 3

成為會員 Register 3

下載MYSQL (一) Developer Zone 5

下載MYSQL (一) Developer Zone 5

下載MYSQL (四) 歡樂Download!! 8

下載MYSQL (四) 歡樂Download!! 8

進入MYSQL(一) • 打上 mysql -h localhost -u root –p -h : host -u :

進入MYSQL(一) • 打上 mysql -h localhost -u root –p -h : host -u : user -p : password 11

刪除Database • 打上 drop database db. Name; 刪除成功 14

刪除Database • 打上 drop database db. Name; 刪除成功 14

進入Database(一) • 打上 use db. Name; 15

進入Database(一) • 打上 use db. Name; 15

進入Database(二) • 在登入時也可以選擇要進入的Database • 打上 mysql -h localhost -u root -p db. Name 成功

進入Database(二) • 在登入時也可以選擇要進入的Database • 打上 mysql -h localhost -u root -p db. Name 成功 16

寫入Instances(一) • 打上 insert into table. Name( field 1, field 2, ……field. N )

寫入Instances(一) • 打上 insert into table. Name( field 1, field 2, ……field. N ) values ( arg 1, arg 2, ……arg. N ); Input成功 22

寫入Instances(二) • 一次寫入多個 insert into table. Name( field 1, field 2, ……field. N )

寫入Instances(二) • 一次寫入多個 insert into table. Name( field 1, field 2, ……field. N ) values ( arg 1 -1, arg 1 -2, ……arg 1 -N ), ( arg 2 -1, arg 2 -2, ……arg 2 -N ); Input成功 23

寫入Instances(三) • 不想打熱熱長的話 insert into table. Name values ( arg 1 -1, arg 1

寫入Instances(三) • 不想打熱熱長的話 insert into table. Name values ( arg 1 -1, arg 1 -2, ……arg 1 -N ), ( arg 2 -1, arg 2 -2, ……arg 2 -N ); Input成功 24

查詢Instances • 打上 select * from table. Name; 你發現了嗎? 25

查詢Instances • 打上 select * from table. Name; 你發現了嗎? 25

更新Records • 打上 update table. Name set field. Name = [Value] where //e. g.

更新Records • 打上 update table. Name set field. Name = [Value] where //e. g. account_number =“Kim”; [Condition]; 27

刪除Records • 打上 delete from table. Name where //e. g. account_number =“Richard"; [Conditon]; 28

刪除Records • 打上 delete from table. Name where //e. g. account_number =“Richard"; [Conditon]; 28

新增Field • 打上 alter table. Name add column field. Name type; 29

新增Field • 打上 alter table. Name add column field. Name type; 29