指令:create table 資料表名 (欄位名稱 欄位型別,......,欄位名稱
欄位型別);
實作:在class資料庫建立student資料表
欄為分別為:編號(整數)、姓名(10字元)、電話(20字元)、位址(60字元)
(1)、先指定資料庫:use class;
(2)、建立student資料表
指令:可以如圖按Enter鍵分段書寫比較清楚
create table student (no integer,name char(10),telephone
char(20),address char(60));

|
(3)、檢視建立好的student資料表欄位
create columns from student;

|
|
|