首页  >  文章  >  后端开发  >  php选择题数据库如何设计

php选择题数据库如何设计

angryTom
angryTom原创
2019-11-08 16:44:212901浏览

php选择题数据库如何设计

php选择题数据库如何设计

php选择题数据表可以设计如下:

E-R图

1.jpg

选择题数据表

列名

说明

数据类型

约束

ChoiceQst_id

试题号

tinyint

not null IDENTITY(1, 1) primary key

ChoiceQst_Question

题型号

int

not null

foreign key

ChoiceQst_Info

内容

text

not null

ChoiceQst_OP1

操作1

text

not null

ChoiceQst_OP2

操作2

text

not null

ChoiceQst_OP3

操作3

text

not null

ChoiceQst_OP4

操作4

text

not null

ChoiceQst_answ

答案

char

not null

更多PHP相关知识,请访问PHP中文网

以上是php选择题数据库如何设计的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
上一篇:phpbb是什么下一篇:php工资低吗