手绘板推荐 纹身师:紧急!!会SQL语言的请进!!

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/09 02:26:11
用SQL语言在Acless2000数据库工具添加一个表,表名为users,并添加字段用户(id)文本型10,不能为空,用户姓名(name)文本型为20,不能为空,性别(sex)文本型为2,年龄(age)整型,电子邮件(e-mail)文本型40,电话(dianhua)文本型8。并设置主键且年龄的约束条件为10到50之间。

谁能帮我写出上面这个的代码??我只要代码!紧急!!紧急!!

Create table users
[id] char(10) not null primary key,
name varchar(20) not null,
sex char(2),
age int,
email varchar(40),
dianhua varchar(8)

create table users
(id char(10) not null,
name char(20) not null,
sex char(2) not null,
age int,
e-mail char(40),
dianhua char(8),
primary key (id));
"年龄的约束条件为10到50之间"不能确定
试试 age int between 10 and 50,
只能帮到这里了,不好意思.