CN111708772A - 一种减少数据库冗余,提高运行效率的操作方法 - Google Patents

一种减少数据库冗余,提高运行效率的操作方法 Download PDF

Info

Publication number
CN111708772A
CN111708772A CN202010562373.3A CN202010562373A CN111708772A CN 111708772 A CN111708772 A CN 111708772A CN 202010562373 A CN202010562373 A CN 202010562373A CN 111708772 A CN111708772 A CN 111708772A
Authority
CN
China
Prior art keywords
movie
type
database
name
director
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010562373.3A
Other languages
English (en)
Inventor
邹宇帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Liaoning Zhenxing Bank Co ltd
Original Assignee
Liaoning Zhenxing Bank Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Liaoning Zhenxing Bank Co ltd filed Critical Liaoning Zhenxing Bank Co ltd
Priority to CN202010562373.3A priority Critical patent/CN111708772A/zh
Publication of CN111708772A publication Critical patent/CN111708772A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Abstract

本发明公开了一种减少数据库冗余,提高运行效率的操作方法,包括如下步骤:S1 OMDB数据库设计;S11关系表,根据需求给出关系表;S12对象关系设计:根据在线电影数据库的基本结构和人的常识,定义该对象关系电影数据库中的类型表;S3 OMDB数据库实现,包括两个方面:创建类型、表和将实际值插入数据库;S31 DDL statement:在准备创建表方面,Drop操作符用于准备数据库,并确保没有具有相同名称的表会限制我们的设计。本发明通过展示一些实现文本,提供了设计思维分析,以指导使用对象关系数据库的好处,通过减少冗余,提高了数据库的运行效率,可以在短时间内完成对添加表或值、链接属性或实体的修改。

Description

一种减少数据库冗余,提高运行效率的操作方法
技术领域
本发明涉及数据处理技术领域,尤其涉及一种减少数据库冗余,提高运行效率的操作方法。
背景技术
当下,银行的数据库使用效率低下,读取效率低下,浪费系统操作资源,业务效率持续下降,本文以电影数据为例,介绍了如何设计、实现和应用对象关系数据库,介绍了数据库设计的基本过程,提出了利用对象关系来满足实际场景需求的概念。
发明内容
基于背景技术存在的技术问题,本发明提出了一种减少数据库冗余,提高运行效率的操作方法。
本发明提出的一种减少数据库冗余,提高运行效率的操作方法,包括如下步骤:
S1 OMDB数据库设计;
S11关系表,根据需求给出关系表;
Person(personId,name,role,awardID*)
FK(awardID)references nomination(awardID)
Nomination(awardID,awardtype,movieID*)
FK(movieID)references movie(movieID)
Movie(MoiveID,website,director,runtime,rating, storyline,sessionID*,genre,reviewID*)
FK(sessionID)references session(sessionID)
FK(reviewID)references review(reviewID)
Session(sessionID,sessiondate,sessiontime)
Cinema(cinemaID,address,phone,sessionID*)
FK(sessionID)references session(sessionID)
Review(reivewID,reviewer,reviewtext,reviewscore, reviewsource,reviewdate)
Genre(genreID,movieID*,genretype)
FK(movieID)references movie(movieID);
S12对象关系设计:根据在线电影数据库的基本结构和人的常识,定义该对象关系电影数据库中的类型表;
类型定义:
1)使用VARRY根据每个人的角色和不同类型的moive匹配数据需求;
create type genre_type as varray(3)of varchar2(40)
2)Person类型包括Person的名称和角色;
create type person_type as object
(personName varchar2(50),
role_type genre_type))
3)评论类型将包含评论人的姓名、文本、电影评分和评论日期;
create type reviews_type as object
(reviewer varchar2(50),
review_text clob,
review_score int,
review_source varchar2(50),
review_date date))
4)用电影院的属性名、地址和联系电话创建电影院类型;
create type cinema_type as object
(cname varchar2(50),
caddress address_type,
cphone varchar2(50))
5)演员类型将包括人名、明星角色评估方法、他们为特定电影扮演的角色名、信用订单;
create type cast_type as object
(personName varchar2(50),
isstar integer,
role_name varchar2(50),
credit_order number)
6)为检查和强制转换创建嵌套表类型;
create type reviews_table as table of reviews_type;
create type casts_table as table of cast_type;
7)创建电影类型,其属性应该是电影标题、导演姓名、发布时间、评级、故事情节、类型和两个嵌套表(Cast和Review);
create type movie_type as object
(title varchar2(100),
director varchar2(50),
website varchar(2083),
runtime integer,
rating varchar2(50),
storyLine clob,
genre_name genre_type,
reviews reviews_table,
casts casts_table)
8)创建会话类型使用引用来减少数据冗余,属性应该是日期、会话时间和两个链接到电影类型和电影院的引用;
Figure BDA0002546226190000041
9)在两个不同的表中创建引用人名和电影名称的提名表类型,而awardtype应该是另一个属性;
Figure BDA0002546226190000042
S3 OMDB数据库实现,包括两个方面:创建类型、表和将实际值插入数据库;
S31 DDL statement:
在准备创建表方面,Drop操作符用于准备数据库,并确保没有具有相同名称的表会限制我们的设计;
Drop table example
drop table cinema
drop table sessions
Drop type example
drop type session_type
drop type cinema_type
drop type review_typ
之后,可以创建所有表,为了以一种合理的逻辑方式实现这种设计,应该首先创建独立类型,然后创建从属类型,所有类型都应该在创建表之前创建;
Create type example
create type genre_type as varray(3)of varchar2(40)
create type person_type as object
(personName varchar2(50),
role_type genre_type)
/
create type reviews_type as object
(
reviewer varchar2(50),
review_text clob,
review_score int,
review_source varchar2(50),
review_date date)
/
按照create语句的顺序,用逻辑方式实现,在创建会话类型和提名类型之前创建电影表,以避免由于最后创建引用方法而导致的系统约束;
create table movie of movie_type
object id system generated
nested table reviews store as review_tab
nested table casts store as cast_tab;
/
create type session_type as object
(
session_date date,
session_time timestamp,
movie_ref ref movie_type,
cinema_ref ref cinema_type)
/
create type nomination_type as object
(person_ref ref person_type,
movie_ref ref movie_type,
awardtype varchar2(50))
create table person of person_type
object id system generated;
/
create table sessions of session_type
object id system generated;
/
create table cinema of cinema_type
object id system generated;
/
create table nominations of nomination_type
object id system generated;
/
为了通过引用成功地链接不同的表,在create语句之后添加 alter操作符,它需要找出这些引用链接的类型和表;
alter table sessions
add(scope for(cinema_ref)is cinema);
/
alter table sessions
add(scope for(movie_ref)is movie);
/
alter table nominations
add(scope for(person_ref)is person);
/
alter table nominations
add(scope for(movie_ref)is movie);
/
为了定义与关系数据库中的主键相似的链接关系,在创建表之后提供“object idsystem generated”;
S32 Insert statement:
根据执行任务的要求,从imdb网站收集数据,通过访问和记录相关数据,insert语句应该对于每个表(包括嵌套表),只显示一条语句;
Insert statements for Person
Insert into person values('Brendan Gleeson',genre_type('Actor','Director','Writer'));
Insert statement of Cinema
Insert into cinema values('Dendy Cinema',address_type('261-263KingStreet', 'Newtown',2042,'NSW'),'02 9550 5699');
Insert statement of Movie
Insert into movie values
(
'Calvary','John Michael McDonagh','http://www.imdb.com/title/tt2234003/?ref_=
nm_knf_i4',100,'7.5','‘Father James is a small-town priest in Irelandwhose Sunday
confessionals suddenly include a threat to kill him in a weeks timeas a matter
of principle',genre_type('Drama'),reviews_table(
reviews_type('Seamus06','Watched this at Sundance Festival.Brilliantfilm.
Some of the dialog is a bit lost on US audience but still somehilarious lines.
This is much darker than The Guard and In Bruges,but very similarhumor.',9,'USA', to_date('2014-01-25','yyyy-mm-dd')),
reviews_type('Eamonn-donaghy','Having seen all the Oscar nominees inearly 2014,
I would have to say this is better than any of them.It might be acontroversial thing
to say to all the film techies who get very involved in analysingdialogue and the like
but as a snap shot of Ireland in 2014',10,'Belfast',to_date('2014-02-12','yyyy-mm-dd')),
reviews_type('davidgee','A timely title for Holy Week. Father James(Brendan Gleeson),a village priest in a co astal village in Ireland,is toldin the confessional that one of his parishioners is going to kill him.
The man was abused by a priest for five years as a child; that priesthas died.',8,'United Kingdom',to_date('2014-02-03','yyyy-mm-dd'))),
casts_table(
cast_type('Brendan Gleeson',1,'Father James',1),
cast_type('Chris ODowd',0,'Jack Brennan',2))
);
Insert statement for session
Insert into sessions values (to_date('2014-10-02','yyyy-mm-dd'),timestamp'2014-10-02 06:30:00',
(select ref(m)from movie m where m.title='Calvary'),(select ref(c)from cinema c where c.cname='Event Cinema'))
Insert statement for nomination
Insert into nominations values((select ref(p)from person p
where p.personname='Brendan Gleeson'),(select ref(m)from movie mwhere m.title='Calvary'),'Best Lead Actor–Film')
S4 OMDB查询;
S41列出电影《Calvary》的演员名单,包括演员的名字和他们扮演的角色,按演员的评分排序(即根据他们所扮演角色的重要性排序);
select c.personName,c.role_name,c.credit_order
from movie m,table(m.casts)c
where title='Calvary'
order by credit_order;
Figure BDA0002546226190000111
S42列出凯特·布兰切特(Cate Blanchett)主演的电影,显示电影名称、导演和类型;。
select m.title,m.director,m.genre_name
from movie m,table(m.casts)c
where c.personName='Cate Blanchett'and c.isstar='1';
Figure BDA0002546226190000112
S43列出本周末在cinema Dendy放映的电影的片名、导演和明星演员
(您可以选择合适的周六和周日日期);
Select distinct deref(movie_ref).title,deref(movie_ref).director,c.personName,
deref(cinema_ref).cname
from movie m,table(m.casts)c,cinema f,sessions s
where deref(cinema_ref).cname='Dendy Cinema'
and s.session_date between to_date('2014-10-02','yyyy-mm-dd')and to_date('2014-10-03','yyyy-mm-dd')
and c.isstar='1'
Figure BDA0002546226190000121
S44列出电影《弗兰克》正在放映的影院,显示电影名称、导演、上映日期和放映时间;
select distinct deref(cinema_ref).cname,deref(movie_ref).title,
deref(movie_ref).director,s.session_date,s.session_time
from sessions s
where deref(movie_ref).title='Frank'
Figure BDA0002546226190000122
S45列出因其执导的电影而获得奥斯卡最佳导演奖提名的导演名单。
列出导演和电影名称;
select m.title,m.director,
from movie m,nominations n
where n.movie_ref=ref(m)
and n.awardType LIKE'%Best Director Academy Awards%';
Figure 1
S46列出获得多项奥斯卡提名的电影,包括电影名称、导演和相应的平均评分;
Figure BDA0002546226190000124
Figure BDA0002546226190000133
Figure 2
S47列出在多家影院上映的喜剧(即类型=“喜剧”的电影)(即不包括只在一家影院上映的电影),显示电影名称、影院名称和平均影评人评分;
Figure BDA0002546226190000134
Figure BDA0002546226190000132
S48列出非喜剧片(即类型<>"comedy"),但在故事情节中有""一词的电影,显示电影名称和导演;
Figure BDA0002546226190000135
Figure BDA0002546226190000143
Figure 3
S49显示电影片名、导演和平均评分。
Figure BDA0002546226190000144
Figure BDA0002546226190000142
本发明中,所述一种减少数据库冗余,提高运行效率的操作方法,通过展示一些实现文本,提供了设计思维分析,以指导使用对象关系数据库的好处,通过减少冗余,提高了数据库的运行效率,可以在短时间内完成对添加表或值、链接属性或实体的修改。
附图说明
图1为本发明提出的一种减少数据库冗余,提高运行效率的操作方法的OriginalE-R dragriam图;
图2为本发明提出的一种减少数据库冗余,提高运行效率的操作方法的New E-Rdiagram图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。
参照图1-2,一种减少数据库冗余,提高运行效率的操作方法,包括如下步骤:
S1 OMDB数据库设计;
S11关系表,根据需求给出关系表;
Person(personId,name,role,awardID*)
FK(awardID)references nomination(awardID)
Nomination(awardID,awardtype,movieID*)
FK(movieID)references movie(movieID)
Movie(MoiveID,website,director,runtime,rating, storyline,sessionID*,genre,reviewID*)
FK(sessionID)references session(sessionID)
FK(reviewID)references review(reviewID)
Session(sessionID,sessiondate,sessiontime)
Cinema(cinemaID,address,phone,sessionID*)
FK(sessionID)references session(sessionID)
Review(reivewID,reviewer,reviewtext,reviewscore, reviewsource,reviewdate)
Genre(genreID,movieID*,genretype)
FK(movieID)references movie(movieID);
S12对象关系设计:根据在线电影数据库的基本结构和人的常识,定义该对象关系电影数据库中的类型表;
类型定义:
1)使用VARRY根据每个人的角色和不同类型的moive匹配数据需求;
create type genre_type as varray(3)of varchar2(40)
2)Person类型包括Person的名称和角色;
create type person_type as object
(personName varchar2(50),
role_type genre_type))
3)评论类型将包含评论人的姓名、文本、电影评分和评论日期;
create type reviews_type as object
(reviewer varchar2(50),
review_text clob,
review_score int,
review_source varchar2(50),
review_date date))
4)用电影院的属性名、地址和联系电话创建电影院类型;
create type cinema_type as object
(cname varchar2(50),
caddress address_type,
cphone varchar2(50))
5)演员类型将包括人名、明星角色评估方法、他们为特定电影扮演的角色名、信用订单;
create type cast_type as object
(personName varchar2(50),
isstar integer,
role_name varchar2(50),
credit_order number)
6)为检查和强制转换创建嵌套表类型;
create type reviews_table as table of reviews_type;
create type casts_table as table of cast_type;
7)创建电影类型,其属性应该是电影标题、导演姓名、发布时间、评级、故事情节、类型和两个嵌套表(Cast和Review);
create type movie_type as object
(title varchar2(100),
director varchar2(50),
website varchar(2083),
runtime integer,
rating varchar2(50),
storyLine clob,
genre_name genre_type,
reviews reviews_table,
casts casts_table)
8)创建会话类型使用引用来减少数据冗余,属性应该是日期、会话时间和两个链接到电影类型和电影院的引用;
Figure BDA0002546226190000181
9)在两个不同的表中创建引用人名和电影名称的提名表类型,而awardtype应该是另一个属性;
Figure BDA0002546226190000182
S3 OMDB数据库实现,包括两个方面:创建类型、表和将实际值插入数据库;
S31 DDL statement:
在准备创建表方面,Drop操作符用于准备数据库,并确保没有具有相同名称的表会限制我们的设计;
Drop table example
drop table cinema
drop table sessions
Drop type example
drop type session_type
drop type cinema_type
drop type review_typ
之后,可以创建所有表,为了以一种合理的逻辑方式实现这种设计,应该首先创建独立类型,然后创建从属类型,所有类型都应该在创建表之前创建;
Create type example
create type genre_type as varray(3)of varchar2(40)
create type person_type as object
(personName varchar2(50), role_type genre_type)
/
create type reviews_type as object
(
reviewer varchar2(50),
review_text clob,
review_score int,
review_source varchar2(50),
review_date date)
/
按照create语句的顺序,用逻辑方式实现,在创建会话类型和提名类型之前创建电影表,以避免由于最后创建引用方法而导致的系统约束;
create table movie of movie_type
object id system generated
nested table reviews store as review_tab
nested table casts store as cast_tab;
/
create type session_type as object
(
session_date date,
session_time timestamp,
movie_ref ref movie_type,
cinema_ref ref cinema_type)
/
create type nomination_type as object
(person_ref ref person_type,
movie_ref ref movie_type,
awardtype varchar2(50))
create table person of person_type
object id system generated;
/
create table sessions of session_type
object id system generated;
/
create table cinema of cinema_type
object id system generated;
/
create table nominations of nomination_type
object id system generated;
/
为了通过引用成功地链接不同的表,在create语句之后添加 alter操作符,它需要找出这些引用链接的类型和表;
alter table sessions
add(scope for(cinema_ref)is cinema);
/
alter table sessions
add(scope for(movie_ref)is movie);
/
alter table nominations
add(scope for(person_ref)is person);
/
alter table nominations
add(scope for(movie_ref)is movie);
/
为了定义与关系数据库中的主键相似的链接关系,在创建表之后提供“object idsystem generated”;
S32 Insert statement:
根据执行任务的要求,从imdb网站收集数据,通过访问和记录相关数据,insert语句应该对于每个表(包括嵌套表),只显示一条语句;
Insert statements for Person
Insert into person values('Brendan Gleeson',genre_type('Actor','Director','Writer'));
Insert statement of Cinema
Insert into cinema values('Dendy Cinema',address_type('261-263KingStreet', 'Newtown',2042,'NSW'),'02 9550 5699');
Insert statement of Movie
Insert into movie values
(
'Calvary','John Michael McDonagh','http://www.imdb.com/title/tt2234003/?ref_=
nm_knf_i4',100,'7.5','‘Father James is a small-town priest in Irelandwhose Sunday
confessionals suddenly include a threat to kill him in a weeks timeas a matter
of principle',genre_type('Drama'),reviews_table(
reviews_type('Seamus06','Watched this at Sundance Festival.Brilliantfilm.
Some of the dialog is a bit lost on US audience but still somehilarious lines.
This is much darker than The Guard and In Bruges,but very similarhumor.',9,'USA', to_date('2014-01-25','yyyy-mm-dd')),
reviews_type('Eamonn-donaghy','Having seen all the Oscar nominees inearly 2014,
I would have to say this is better than any of them.It might be acontroversial thing
to say to all the film techies who get very involved in analysingdialogue and the like
but as a snap shot of Ireland in 2014',10,'Belfast',to_date('2014-02-12','yyyy-mm-dd')),
reviews_type('davidgee','A timely title for Holy Week. Father James(Brendan Gleeson),a village priest in a co
astal village in Ireland,is told in the confessional that one of hisparishioners is going to kill him.
The man was abused by a priest for five years as a child; that priesthas died.',8,'United Kingdom',to_date('2014-02-03','yyyy-mm-dd'))),
casts_table(
cast_type('Brendan Gleeson',1,'Father James',1),
cast_type('Chris ODowd',0,'Jack Brennan',2)) );
Insert statement for session
Insert into sessions values (to_date('2014-10-02','yyyy-mm-dd'),timestamp'2014-10-02 06:30:00',
(select ref(m)from movie m where m.title='Calvary'),(select ref(c)from cinema c where c.cname='Event Cinema'))
Insert statement for nomination
Insert into nominations values((select ref(p)from person p
where p.personname='Brendan Gleeson'),(select ref(m)from movie mwhere m.title='Calvary'),'Best Lead Actor–Film')
S4 OMDB查询;
S41列出电影《Calvary》的演员名单,包括演员的名字和他们扮演的角色,按演员的评分排序(即根据他们所扮演角色的重要性排序);
select c.personName,c.role_name,c.credit_order
from movie m,table(m.casts)c
where title='Calvary'
order by credit_order;
Figure BDA0002546226190000241
S42列出凯特·布兰切特(Cate Blanchett)主演的电影,显示电影名称、导演和类型;。
select m.title,m.director,m.genre_name
from movie m,table(m.casts)c
where c.personName='Cate Blanchett'and c.isstar='1';
Figure BDA0002546226190000251
S43列出本周末在cinema Dendy放映的电影的片名、导演和明星演员 (您可以选择合适的周六和周日日期);
Select distinct deref(movie_ref).title,deref(movie_ref).director,c.personName, deref(cinema_ref).cname
from movie m,table(m.casts)c,cinema f,sessions s
where deref(cinema_ref).cname='Dendy Cinema'
and s.session_date between to_date('2014-10-02','yyyy-mm-dd')and to_date('2014-10-03','yyyy-mm-dd')
and c.isstar='1'
Figure BDA0002546226190000252
S44列出电影《弗兰克》正在放映的影院,显示电影名称、导演、上映日期和放映时间;
select distinct deref(cinema_ref).cname,deref(movie_ref).title,
deref(movie_ref).director,s.session_date,s.session_time
from sessions s
where deref(movie_ref).title='Frank'
Figure BDA0002546226190000261
S45列出因其执导的电影而获得奥斯卡最佳导演奖提名的导演名单。
列出导演和电影名称;
select m.title,m.director,
from movie m,nominations n
where n.movie_ref=ref(m)
and n.awardType LIKE'%Best Director Academy Awards%';
Figure 6
S46列出获得多项奥斯卡提名的电影,包括电影名称、导演和相应的平均评分;
Figure BDA0002546226190000264
Figure 4
S47列出在多家影院上映的喜剧(即类型=“喜剧”的电影)(即不包括只在一家影院上映的电影),显示电影名称、影院名称和平均影评人评分;
Figure BDA0002546226190000273
Figure BDA0002546226190000271
S48列出非喜剧片(即类型<>"comedy"),但在故事情节中有""一词的电影,显示电影名称和导演;
Figure BDA0002546226190000274
Figure 5
S49显示电影片名、导演和平均评分。
Figure BDA0002546226190000275
Figure BDA0002546226190000281
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。

Claims (1)

1.一种减少数据库冗余,提高运行效率的操作方法,其特征在于,包括如下步骤:
S1 OMDB数据库设计;
S11关系表,根据需求给出关系表;
S12对象关系设计:根据在线电影数据库的基本结构和人的常识,定义该对象关系电影数据库中的类型表;
类型定义:
1)使用VARRY根据每个人的角色和不同类型的moive匹配数据需求;
3)评论类型将包含评论人的姓名、文本、电影评分和评论日期;
4)用电影院的属性名、地址和联系电话创建电影院类型;
5)演员类型将包括人名、明星角色评估方法、他们为特定电影扮演的角色名、信用订单;
6)为检查和强制转换创建嵌套表类型;
7)创建电影类型,其属性应该是电影标题、导演姓名、发布时间、评级、故事情节、类型和两个嵌套表(Cast和Review);
8)创建会话类型使用引用来减少数据冗余,属性应该是日期、会话时间和两个链接到电影类型和电影院的引用;
9)在两个不同的表中创建引用人名和电影名称的提名表类型,而awardtype应该是另一个属性;
S3 OMDB数据库实现,包括两个方面:创建类型、表和将实际值插入数据库;
S31 DDL statement:
在准备创建表方面,Drop操作符用于准备数据库,并确保没有具有相同名称的表会限制我们的设计;
之后,可以创建所有表,为了以一种合理的逻辑方式实现这种设计,应该首先创建独立类型,然后创建从属类型,所有类型都应该在创建表之前创建;
按照create语句的顺序,用逻辑方式实现,在创建会话类型和提名类型之前创建电影表,以避免由于最后创建引用方法而导致的系统约束;
为了通过引用成功地链接不同的表,在create语句之后添加alter操作符,它需要找出这些引用链接的类型和表;
为了定义与关系数据库中的主键相似的链接关系,在创建表之后提供“object idsystem generated”;
S32 Insert statement:
根据执行任务的要求,从imdb网站收集数据,通过访问和记录相关数据,insert语句应该对于每个表(包括嵌套表),只显示一条语句;
S4 OMDB 查询;
S41列出电影《Calvary》的演员名单,包括演员的名字和他们扮演的角色,按演员的评分排序(即根据他们所扮演角色的重要性排序);
S42列出凯特·布兰切特(Cate Blanchett)主演的电影,显示电影名称、导演和类型;
S43列出本周末在cinema Dendy放映的电影的片名、导演和明星演员(您可以选择合适的周六和周日日期);
S44列出电影《弗兰克》正在放映的影院,显示电影名称、导演、上映日期和放映时间;
S45列出因其执导的电影而获得奥斯卡最佳导演奖提名的导演名单,列出导演和电影名称;
S46列出获得多项奥斯卡提名的电影,包括电影名称、导演和相应的平均评分;
S47列出在多家影院上映的喜剧(即类型=“喜剧”的电影)(即不包括只在一家影院上映的电影),显示电影名称、影院名称和平均影评人评分;
S48列出非喜剧片(即类型<> " comedy "),但在故事情节中有" "一词的电影,显示电影名称和导演;
S49显示电影片名、导演和平均评分。
CN202010562373.3A 2020-06-18 2020-06-18 一种减少数据库冗余,提高运行效率的操作方法 Pending CN111708772A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010562373.3A CN111708772A (zh) 2020-06-18 2020-06-18 一种减少数据库冗余,提高运行效率的操作方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010562373.3A CN111708772A (zh) 2020-06-18 2020-06-18 一种减少数据库冗余,提高运行效率的操作方法

Publications (1)

Publication Number Publication Date
CN111708772A true CN111708772A (zh) 2020-09-25

Family

ID=72542143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010562373.3A Pending CN111708772A (zh) 2020-06-18 2020-06-18 一种减少数据库冗余,提高运行效率的操作方法

Country Status (1)

Country Link
CN (1) CN111708772A (zh)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561497A (zh) * 2001-09-28 2005-01-05 甲骨文国际公司 提供关系数据的一致性层次抽象化

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561497A (zh) * 2001-09-28 2005-01-05 甲骨文国际公司 提供关系数据的一致性层次抽象化

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ALEX许恒: "Oracle 数据库 ref 数据类型怎么用", pages 1 - 9, Retrieved from the Internet <URL:https://blog.csdn.net/xuheng8600/article/details/85342049> *
李惠敏 等: "对象关系型3D人体测量数据库原型的研究与实现", 微机发展, vol. 15, no. 08, 10 August 2005 (2005-08-10), pages 134 - 136 *
耶晓东 等: "对象数据库技术发展及其应用", 现代机械, no. 04, 25 August 2006 (2006-08-25), pages 58 - 60 *
贾代平: "Oracle8/8i中的对象关系特性", 计算机系统应用, no. 02, 5 February 2001 (2001-02-05), pages 21 - 24 *

Similar Documents

Publication Publication Date Title
Petre Engineering consent: How the design and marketing of newsroom analytics tools rationalize journalists’ labor
US10678838B2 (en) Augmented reality display apparatus and related methods using database record data
US11848916B2 (en) Secure electronic messaging system
Watson et al. Managerial considerations
US9311683B1 (en) Measuring engagement with a social networking platform
Bruno et al. Survival is success: Journalistic online start-ups in Western Europe
Brohman et al. Data completeness: A key to effective net-based customer service systems
Kirk Thoughtful machine learning: A test-driven approach
US20100057559A1 (en) method of choosing advertisements to be shown to a search engine user
CN104424202B (zh) 对crm系统中的客户信息进行查重的方法及系统
Hultgren Vocatives as rationalized politeness: Theoretical insights from emerging norms in call centre service encounters
CN102413106A (zh) 安全处理广告商数据的方法和系统
US9652740B2 (en) Fan identity data integration and unification
CN115375380B (zh) 一种基于属性分类的业务数据处理方法和处理装置
CN105721288A (zh) 一种在线的精准交际系统及其方法
Le et al. Lifeseeker 2.0: Interactive lifelog search engine at lsc 2020
FR2853102A1 (fr) Dispositif informatique de gestion de documents en mode multi-utilisateurs
CN111708772A (zh) 一种减少数据库冗余,提高运行效率的操作方法
Hobdell Economic globalization and oral health
US11507617B2 (en) Unsupervised dialogue topic extraction
AU2022204425B2 (en) Extracting key value pairs using positional coordinates
CN109460506A (zh) 一种用户需求驱动的资源匹配推送方法
Tan et al. TimelineQA: A benchmark for question answering over timelines
US20080021758A1 (en) Responsibility determination
Im et al. A study on brand identity and image utilizing SNA

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination