sql创建表单问题!求解

WBOY
Release: 2016-06-23 13:33:14
Original
900 people have browsed it

create table admin(
userId smallint(5)primary key not null auto_increment,
userName  varchar(70) not null,
userAge tinyint,
userSex  enum("1","2"),
userDate  date
);
========================================================================
请帮看下这段sql语句
我试了好多遍不成功,求大神路过指导下,这表单创建感觉好难掌握


回复讨论(解决方案)

CREATE TABLE admin(userId smallint( 5 ) PRIMARY KEY NOT NULL AUTO_INCREMENT ,userName varchar( 70 ) NOT NULL ,userAge tinyint,userSex enum( "1", "2" ) ,userDate date)
Copy after login

你以为 MySQL 已经聪明到自动识别中文了吗?
不然你用全角的(),做什么

这种错误,。。。。

create table admin (
userId smallint (5 )primary key not null auto_increment,
userName  varchar (70) not null ,
userAge tinyint,
userSex  enum ("1","2" ),
userDate  date
);
红色部分改回半角就可以了。

就这么一点。。。。我还真没看出来。。。谢谢!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template