【MYSQL】数据库知识记录

数据类型

见:https://www.runoob.com/mysql/mysql-data-types.html

创建表的sql语句

create table option_table
(
    id          bigint auto_increment comment 'id',
    q_id        bigint  not null comment '所属题目id',
    option_des VARCHAR(5000)  not null comment '选项描述(单选、多选、判断->选项描述;填空、计算->答案)',
    is_true tinyint  comment '该选项是否正确(单选、多选、判断->0/1;填空、计算->空)',
    order   tinyint  comment '选项顺序(1、2、3、4、5...)',
    create_time datetime not null default current_timestamp comment '创建时间',
    update_time datetime not null default current_timestamp on update current_timestamp comment '更新时间',
    create_user VARCHAR(100)   not null comment '创建人',
    update_user VARCHAR(100)   not null comment '更新人',
    is_delete   tinyint  not null default 0 comment '是否被删除 0:未删除;1:被删除',
    constraint option_table_pk
        primary key (id)
) comment '选项表';
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值