怎么在SQL SERVER2000中新建一个数据库中建立表???

来源:百度知道 编辑:UC知道 时间:2024/07/02 20:18:47
怎么在SQL SERVER2000中新建一个数据库中建立表???
图片如下

举例说明吧:比如要在xscj(学生成绩)数据库中创建xs(学生)表,
use xscj
create table xs
(sno char(10) primary key, /*学号 类型(大小) 约束条件*/
name char(8) not null, /*姓名*/
sex bit not null, /*性别*/
birthday datetime not null /*出生日期*/
)
go

create table xxxx{
id xxx
name xxxx

}
就这样撒