考试用户管理

Posted Tomatoes

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了考试用户管理相关的知识,希望对你有一定的参考价值。

1)创建一个用户名称为user1并授予权限至少能够访问hr.employees(不能授予dba权限)
SYS@ORA11GR2>create user user1 identified by user1;

User created.
SYS@ORA11GR2>grant create session,create table,create sequence,create view to user1;

2)用user1用户创建表students(学号 数值类型 主键约束stud_sno_pk,班级 字符类型外键参照班级表的班级列,姓名 字符类型 非空);
USER1@ORA11GR2>create table students
  2  (sno number constraint stud_sno_pk primary key,
  3  scno number(20),
  4  sname varchar2(20),
  5  constraint stud_scl_fk foreign key (scno) references classes (cno));

Table created.

3)用user1用户创建表classes(班级 数值类型 主键约束);
USER1@ORA11GR2>create table classes
  2  (cno number(5) constraint pk_cno primary key using index);

Table created.
4)模拟向以上两个表中插入数据,并且在数据字典中查询两个表的约束信息并显示。
USER1@ORA11GR2>insert into classes values(01);

1 row created.

USER1@ORA11GR2>insert into classes values(02);

1 row created.

USER1@ORA11GR2>insert into students values(1,01,zhangsan);

1 row created.

USER1@ORA11GR2>insert into students values(2,02,lisi);

1 row created.

USER1@ORA11GR2>select constraint_name,constraint_type,table_name
  2  from user_constraints
  3  where table_name=upper(students);
USER1@ORA11GR2>select constraint_name,constraint_type,table_name
  2  from user_constraints
  3  where table_name=upper(classes);

 

以上是关于考试用户管理的主要内容,如果未能解决你的问题,请参考以下文章

基于JAVA SSM springmvc+mybati学生在线考试系统(《精品毕设》源码+sql)主要实现:用户管理角色管理学科管理考生管理试题考试试卷管理成绩统计以及学生端考试和成绩

《java精品毕设》基于javaweb宠物领养平台管理系统(源码+毕设论文+sql):主要实现:个人中心,信息修改,填写领养信息,交流论坛,新闻,寄养信息,公告,宠物领养信息,我的寄养信息等(代码片段

计算机毕业设计之SpringBoot+Vue.js在线考试学习系统

考试用户管理

在每个用户的Rails中使用片段缓存

扫地阿姨看完都学会了!java高级架构师考试