總網頁瀏覽量

2011年10月30日 星期日

[SQL語法] Create 資料表


Create 語法
create database stuednt #建立一個新的資料庫
建立一個新的資料表
create table student (
id smallint not null auto_increment,
account varchar(12) binary not null,
name varchar(12) not null,
sex tinyint(1) default 0 ,
date datetime,
primary key(id)
)

沒有留言:

張貼留言