老师,这又错在哪里

老师,这又错在哪里

1
2
3
4
5
6
7
8
9
create table user1(
  id INT unsigned auto_increment key,
  username VARCHAR(20) not null unique comment '编号',
  age TINYINT unsigned not null DEFAULT 18 comment '年龄',
  sex ENUM('男','女','保密'not null DEFAULT '保密' comment '性别',
  addr VARCHAR(20) not null DEFAULT '北京',
  married TINYINT(1) not null DEFAULT 0 comment '0代表未结婚,1代表已婚'
  salary FLOAT(8,2) not null DEFAULT 0 comment '薪水'
)ENGINE=INNODB CHARSET=UTF8;

http://img1.sycdn.imooc.com//climg/5f3f9704093298ad10070270.jpg

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
提问者 qq_就是这样_1 2020-08-21 18:09:17

老师,我知道错在哪了!

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师
插入代码