高校平台之题型题库不再“死”不再动态
高校平台集考试系统、权限系统、基础系统、评教系统、新生入学系统等,有幸参加其中之一的考试系统。在考试系统中存在这样一种情况,关于题库表怎么在数据库中存放的问题。 题库看着简单的两个字,却包含了很多,题库中包含很多题型,每个题型有很多题,就廊
高校平台集考试系统、权限系统、基础系统、评教系统、新生入学系统等,有幸参加其中之一的考试系统。在考试系统中存在这样一种情况,关于题库表怎么在数据库中存放的问题。
题库看着简单的两个字,却包含了很多,题库中包含很多题型,每个题型有很多题,就廊坊师范学院来说,到现在为止,经历过得题型就有28种,而且每年都有可能会新增很多题型,如果单纯只是将题型列举,怎么也列举不完,每个题型中有多少道题也不确定,也许今年多,明年就少,也许今年少,明年多。。。
那么应该如何解决这个问题?有以下三种解决方案:
第一:动态建表(题型+课程=一个题库)
动态建表,一个题型和一门课程决定一张题库表,当在给课程配置章节题型的时候就动态创建这张表。
弊端:
会用到sql语句,不符合面向对象的思想
抽题时访问表数量多
第二:28种题库表+动态创建表(添加新题型时动态加表)
列举现有的28中题型,这28个题型符合面向对象思想,对于新添加的题型,采用sql语句创建和操作。抽题时,从相应题型对应的题库表中抽取。
弊端:
数据库中题库表太多,仍然需要sql语句,不符合面向对象思想
对于动态创建的表,在抽题过程中需要访问的表数量多
第三:所有题型的题放在一张表
优点:
方便添加新题型
抽题时只需查询一张表
弊端:
表中数据量大,考试时,访问数据频繁,容易瘫痪
数据冗余,存在多余字段
我们最后选择了第三种解决方案,理由如下:
主要是应对新题型更加灵活,抽题方便,关于它存在的弊端,我们的解决方法是抽题提前,考试前将这门课程的题取出来放在一张临时表中,抽题过程中访问这张临时表,除此之外,提前抽题,考试前几分钟,将题按照一定规则取出入库。
既然这种方案方便添加新题型,那么他又是如何方便的呢?在设计相应的表时又是如何设计的呢?
我们分析知道,一个再复杂的题型构成的题库都是由最基本的一些属性(比如课程、题型等)+选项+空数+正确答案+听力+题库从表等最基本的组件组成的。因此我们设计的表是这样的。
题组件如下:将组件当做一个题型分别存入题型和题型详情中
题型表和题型详情表如下:
题库表如下:
关于添加题型的页面如下:组合成新题型后存入题型和题型详情表中喎?http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+ICAgICAgICAgICAgIDxpbWcgc3JjPQ=="http://www.2cto.com/uploadfile/Collfiles/20141226/20141【本文来自鸿网互联 (http://www.68idc.cn)】22609232952.png" alt="">
道路是曲折的,实现是纠结的,至于效果嘛,还不知道,正在实现中。。。。。。。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

General Matrix Multiplication (GEMM) is a vital part of many applications and algorithms, and is also one of the important indicators for evaluating computer hardware performance. In-depth research and optimization of the implementation of GEMM can help us better understand high-performance computing and the relationship between software and hardware systems. In computer science, effective optimization of GEMM can increase computing speed and save resources, which is crucial to improving the overall performance of a computer system. An in-depth understanding of the working principle and optimization method of GEMM will help us better utilize the potential of modern computing hardware and provide more efficient solutions for various complex computing tasks. By optimizing the performance of GEMM

When creating a virtual machine, you will be asked to select a disk type, you can select fixed disk or dynamic disk. What if you choose fixed disks and later realize you need dynamic disks, or vice versa? Good! You can convert one to the other. In this post, we will see how to convert VirtualBox fixed disk to dynamic disk and vice versa. A dynamic disk is a virtual hard disk that initially has a small size and grows in size as you store data in the virtual machine. Dynamic disks are very efficient at saving storage space because they only take up as much host storage space as needed. However, as disk capacity expands, your computer's performance may be slightly affected. Fixed disks and dynamic disks are commonly used in virtual machines

On July 29, at the roll-off ceremony of AITO Wenjie's 400,000th new car, Yu Chengdong, Huawei's Managing Director, Chairman of Terminal BG, and Chairman of Smart Car Solutions BU, attended and delivered a speech and announced that Wenjie series models will be launched this year In August, Huawei Qiankun ADS 3.0 version was launched, and it is planned to successively push upgrades from August to September. The Xiangjie S9, which will be released on August 6, will debut Huawei’s ADS3.0 intelligent driving system. With the assistance of lidar, Huawei Qiankun ADS3.0 version will greatly improve its intelligent driving capabilities, have end-to-end integrated capabilities, and adopt a new end-to-end architecture of GOD (general obstacle identification)/PDP (predictive decision-making and control) , providing the NCA function of smart driving from parking space to parking space, and upgrading CAS3.0

With the advancement of communication technology, telephone contact has become more and more common in our daily lives. However, sometimes we may try to call a number only to find that the number is no longer reachable. In order to save time and energy, many people start looking for empty number verification services to confirm the validity of the number. This service can help users quickly check whether a number is valid and avoid unnecessary trouble. 1. What are the empty account detection platforms? Users can check the status of the number, including whether it is empty, by dialing the corresponding inquiry number or visiting the official website through the official inquiry service provided by the operator. This service is provided by many operators to facilitate users to quickly understand the usage of the number. Online empty number detection platforms are now emerging in an endless stream on the market. These platforms provide quick and convenient

The best version of the Apple 16 system is iOS16.1.4. The best version of the iOS16 system may vary from person to person. The additions and improvements in daily use experience have also been praised by many users. Which version of the Apple 16 system is the best? Answer: iOS16.1.4 The best version of the iOS 16 system may vary from person to person. According to public information, iOS16, launched in 2022, is considered a very stable and performant version, and users are quite satisfied with its overall experience. In addition, the addition of new features and improvements in daily use experience in iOS16 have also been well received by many users. Especially in terms of updated battery life, signal performance and heating control, user feedback has been relatively positive. However, considering iPhone14

On April 11, Huawei officially announced the HarmonyOS 4.2 100-machine upgrade plan for the first time. This time, more than 180 devices will participate in the upgrade, covering mobile phones, tablets, watches, headphones, smart screens and other devices. In the past month, with the steady progress of the HarmonyOS4.2 100-machine upgrade plan, many popular models including Huawei Pocket2, Huawei MateX5 series, nova12 series, Huawei Pura series, etc. have also started to upgrade and adapt, which means that there will be More Huawei model users can enjoy the common and often new experience brought by HarmonyOS. Judging from user feedback, the experience of Huawei Mate60 series models has improved in all aspects after upgrading HarmonyOS4.2. Especially Huawei M

Linux and Windows are two common operating systems, representing the open source Linux system and the commercial Windows system respectively. In both operating systems, there is a command line interface for users to interact with the operating system. In Linux systems, users use the Shell command line, while in Windows systems, users use the cmd command line. The Shell command line in Linux system is a very powerful tool that can complete almost all system management tasks.

Detailed explanation of the method of modifying the system date in the Oracle database. In the Oracle database, the method of modifying the system date mainly involves modifying the NLS_DATE_FORMAT parameter and using the SYSDATE function. This article will introduce these two methods and their specific code examples in detail to help readers better understand and master the operation of modifying the system date in the Oracle database. 1. Modify NLS_DATE_FORMAT parameter method NLS_DATE_FORMAT is Oracle data
