2018-11-21
閱讀量:
823
創(chuàng)建數(shù)據(jù)庫(kù)
創(chuàng)建數(shù)據(jù)庫(kù)
? 創(chuàng)建數(shù)據(jù)庫(kù): create database數(shù)據(jù)庫(kù)名稱 ;
– 例:創(chuàng)建名為 test 的測(cè)試數(shù)據(jù)庫(kù)
create database test;
? 查看創(chuàng)建好的數(shù)據(jù)庫(kù): show create database 數(shù)據(jù)庫(kù)名稱 ;
– 例: 查看創(chuàng)建好的 test 數(shù)據(jù)庫(kù)
show create database test;
? 查看所有數(shù)據(jù)庫(kù)列表: show database
? 使用數(shù)據(jù)庫(kù): use 數(shù)據(jù)庫(kù)名稱 ;
– 例: 使用創(chuàng)建好的 test 數(shù)據(jù)庫(kù)
use test;
? 刪除數(shù)據(jù)庫(kù): drop database 數(shù)據(jù)庫(kù)名稱 ;
– 例: 刪除創(chuàng)建好的 test 數(shù)據(jù)庫(kù)
drop database test;






評(píng)論(0)


暫無(wú)數(shù)據(jù)
CDA考試動(dòng)態(tài)
CDA報(bào)考指南
推薦帖子
0條評(píng)論
1條評(píng)論
0條評(píng)論