mysql sql

来源:百度知道 编辑:UC知道 时间:2024/05/05 19:36:15
use database user;
drop table if exists user;
create table user(
userid int auto_increment not null primary key,
username char ,
passwd char ,
email char ,
);

哪有错,在线等

if exists(select * from sysobjects where name=user)
drop table user
email char , 逗号去掉

use database user;
drop table if exists user;
create table user(
userid int auto_increment not null primary key,
username char ,
passwd char ,
email char
);

email char(最后一行)后不能有","(逗号)了
你的字段怎么都是char的,就存一个字符吗