当前位置:文档之家› A feature -based database evolution approach in the design process

A feature -based database evolution approach in the design process

A feature -based database evolution approach in the design process
A feature -based database evolution approach in the design process

Robotics and Computer Integrated Manufacturing18(2002)275–281

A feature-based database evolution approach in the design process

Raimundo R.M.da Cunha*,A.Dias

Mechanical Engineering Department,Federal University of Santa Catarina,P.O.Box246,88040-900Trindade,Brazil

Abstract

Design data are assigned in geometric and non-geometric form in order to meet design requirements.These data and information must be encapsulated in a data structure that has signi?cance for design applications in each design process phase.The main goal of this research is to?nd design data groups that represent each mechanical design phase,which will be called phase’s design signature. In addition,current data should be an evolution of the geometric and non-geometric information of the previous design phase.In this paper,the purpose is to identify and model a set of design features that encapsulate the design data and their transformations which occurred during the mechanical design phases.This database must capture the designer’s intents that can be modeled and implemented using feature-based model in the conventional CAD systems,object-oriented modeling,and Java classes.r2002 Elsevier Science Ltd.All rights reserved.

Keywords:Design data;Feature;Object-oriented modeling

1.Introduction

Design information of generic product comprises

geometric and non-geometric data types.These

two kinds of data may be encapsulated in a single

data structure—design objects or design features—that

may have different meanings for speci?c application

context.

This paper uses the design features as units of

information,which can exchange and share design

information among different design phases.Then,each

design phase consists of a set of features,whose

identi?cation and classi?cation of information and data

are speci?c and typical of the corresponding phase.

In this research feature is de?ned as:

Composition of design objects,which encapsulate

own attributes and methods of each design phase,

called phase’s design signature.

This proposal intends to use feature modeling to store

information and data analysis of each mechanical design

phase,resulting in a‘‘design signature’’for each design

phase.It means that object-oriented modeling of

design feature classes can semantically capture the data

transformation and their evolution through the design

phases.Besides,the set of features that represents the

current design phase should be an evolution of the

geometric and non-geometric data of the previous

phase.

Currently,the design process methodology that is

commonly accepted by more important researchers

divides the design process into phases[1]or models[2],

which capture the modi?cations and transformations in

each design phase[3].Therefore,in this paper,it was

decided to use models of features to capture the

designer’s intents in each design phase,such that it

may be possible to show the evolution of the entire

product design process.For systematization and easi-

ness of integration among design phases and other

subsequent stages of the product life cycle,it is intended

that the product design data modeling considers its

evolution based on the product design process system

with well-de?ned design phases,such as informational,

conceptual,preliminary or embodiment,and detailed

design.

Therefore,according to that pointed out pre-

viously,this research will focus on two main issues,

namely:

*Data modeling and feature-based computational data

structure for the mechanical design with CAD

systems;and

*Computer support to the evolution and transforma-

tion of mechanical product design data during the

design process phases.

*Corresponding author.Tel.:+55-48-3319899;fax:+55-48-234-

1519.

0736-5845/02/$-see front matter r2002Elsevier Science Ltd.All rights reserved.

PII:S0736-5845(02)00018-2

The phase’s design feature can be implemented as a computer interface to instance speci?c features of each design phase,and to edit the necessary non-geometric information giving it an application meaning.Such features have to converge to feature instances used by conventional CAD system environment in order to create the product-detailed design.

CAD system will be used as a client-platform for the implementation of computer support tools to the mechanical design process.It will provide computa-tional resources or may have such resources integrated/ implemented into it,such as standardized components database,feature libraries,product functions,solution principle database,and expert rules.

In Section2of this paper,a bibliographical overview will be introduced.Some basic concepts will be discussed,such as the difference between design information and design data,and the closeness between features and the object concept.Some researches about feature modeling,object-oriented modeling and the approaches for capturing the evolution and transforma-tion of design process will be also analyzed.

Section3introduces the proposed approach,which considers product documentation in all the phases of mechanical design process;and then the classes of the object-oriented data structure of the phase’s design

feature are introduced.

Finally,the last section exempli?es,in a schematic manner,the phase’s design feature in the mechanical design.Also,some?nal considerations are given.

2.Bibliographic overview

2.1.The design information and the design data

Stair[4]af?rms that it is possible to separate data and https://www.doczj.com/doc/461675366.html,rmation is a set of data with relation and rules well de?ned and associated to an application context.Data are only values without context,because the data are always available,so it does not need an application context.The information is a result or an output of the transformation process based on data, which are inputs.The information depends on adding knowledge to the data,which are made through relations and rules of the domain application,such as that shown in Fig.1(a).In conclusion,information is a data with application context.

In design activity,design information refers to nouns, which have semantics related to it.In an object-oriented modeling context,information is associated with de?ni-tion of classes,whereas the design data refer to values, quantities,dimensions,etc.The design data is a more real,exact,speci?c and punctual fact.It is commonly associated with object instance.

There is another difference between design informa-tion and design data.Design data can assume different representations,but the design information associated with each representation is the same.It establishes the main design information characteristic based on its unchangeable or immutable nature.The information does not change or transform it into a process design, because the semantics is?xed during a process,so the information should not change.Design data changes during process design,which stores the geometric and non-geometric values.These changes and transforma-tions occur throughout the design phases,when the designer speci?es the constraints and takes decision. Fig.1(b)also shows this transition by de?ning design states.

When the focus of design is speci?c to information related to the product,a better product model can be achieved,since isolated information favors product modeling.

By exemplifying the difference between data and information design,consider the‘‘cost of a product’’.In this case,one may interpret that the‘‘cost’’is informa-tion related to the product,and the‘‘cost value’’is a design data.

Table1shows the differences between design data and design information.

Therefore,it is important to have computational algorithms,tools and data structures to save intelligently a complete framework design information constituted by data attributes,behavior,and semantics of the

(a)

(b)

Fig.1.Transformation process from data to information. Table1

Differential vision between design information and design data

Data x Information

Is value Is noun

Is changeable and mutable

during a process

Is de?ned and?xed

during a process

Has many representations Has same meaning and

semantic

Is independent of application

context

Is dependent of application

context

Has a single and only view Has many views at each

application

Has object instance meaning Has class meaning

R.R.M.da Cunha,A.Dias/Robotics and Computer Integrated Manufacturing18(2002)275–281 276

application domain.The goal is to save and retrieve the object instance when needed,which are the design features instantiated in the CAD model.

2.2.Design feature modeling versus object modeling The research efforts in1990s recommended that data modeling be made based on the object-oriented model[5].Thus,most CAD system companies have developed their programs based on object-oriented paradigm.They have provided resources and tools that implement these principles.This choice still prevails and continues to be valid currently and for future modeling.

The development of CAD systems has shown a convergence between the feature-based CAD systems and the object-oriented modeling.There are some researches that show this tendency[5–7].The computa-tional object-oriented modeling context has shown that object de?nition encompasses the same role of feature modeling de?nition in the CAD system technology. Also,in the case of mechanical component design and product development,feature idea is framed perfectly with the object-oriented modeling and programming. But the term object is wide and very subjective,since objects can model everything in the real or abstract idea world.It is also worth pointing out that‘‘object’’is a strange term used in the designer’s usual terminology. Then,the term feature has been used to replace the object idea in an Engineering context.So,the feature concept is an abstraction that includes the idea of objects inside the design context,such as that shown in Fig.2.

Some de?nitions of object and feature concepts listed below are also very similar and demonstrate the closeness between objects(computer modeling) and features(CAD entities modeling)in the design context.

According to Warman[5],‘‘features or design elements are treated as objects that have underlying code and can handle messages’’.

For Shah[8],‘‘features are generic forms that the engineers associate certain properties or attributes and useful knowledge in reasoning processes on the product,in other words,the features can be seen as primitives of Engineering’’.

For McGinnis and Ullman[9],‘‘feature is any particular or speci?c characteristic of a design object that contains or relates information about that object.It is verbally represented in the form of a noun or noun clause’’.

For Salomons[10],‘‘features can be treated as design objects,belonging to a general class,which inherits properties of other classes’’.

Therefore,from the sequence of feature de?nitions and taking into account the object-oriented modeling theory,it is concluded that

Object Feature3eGeometry;TopologyT,Semantic:

e1TIn Eq.(1),the geometry and topology represent the physical model portion,which is independent,exact and quantitative,whereas the semantics represents the abstract model portion,which is context-dependent, subjective and qualitative.

While this abstraction advance of the CAD entities modeling appeared initially in the area of mechanical engineering,it was?rst noticed with commercial implementations in the area of architecture, engineering and construction(AEC),such as that cited in Day[7]and Achten and Leeuwen[3].Presently, object-oriented modeling using features have been growing and spreading in the mechanical design and product development areas,and it is the current tendency of the CAD market.

So,it may also be said that there is a consensus of several authors whose product model based on features together with other modeling technologies(such as virtual reality,object-oriented modeling,etc.),consoli-dates them as appropriate formalisms for the represen-tation of the designer’s intents and data evolution during the design phases.

2.3.Product data and information modeling in

the design process phases

This paper assumes that the role of information in design activities is to give a meaning or semantics to the design data,according to McGinnis and Ullman’s[9]

Fig.2.Convergence between general and computational design context.

R.R.M.da Cunha,A.Dias/Robotics and Computer Integrated Manufacturing18(2002)275–281277

vision.They af?rmed that,when designing a compo-nent,some constraints on its form and function are given at the initial design phases.Other constraints arise from the designer’s knowledge of the domain,and other constraints are derived from each design decision made. They conclude that the component re?nement evolution depends on a set of relationships and interplay among design constraints.The authors also assign that the?nal product design is the result of the actions in design state by means of a set of changes called transition state.The design state is due to the design decision and the state

transition or transformations process is evidenced by changes on attributes of design constraints—relations and rules of domain application—such as that shown in Fig.1(b).

McGinnis and Ullman[9]identi?ed two types of protocol structures to characterize the relationship between constraints and design features.They are exempli?ed below:

The‘‘instantiation protocol’’of the features is

*/form feature S-/instantiation S and/functional feature S-/instantiation S

The instantiation protocol refers to the values speci?ed for the feature.

Ex.:(operation time is40s)or(hole height X10mm) The‘‘relationship protocol’’occurs among features: */dependent feature—relationship—feature indepen-dent(s)S

The relationship protocol establishes that one or more features restrict a single feature.They identi?ed ten possibilities of protocols corresponding to this pattern. For example:

*/form feature S-/form relationship S-/feature inde-pendent(s)S

Ex.:(hole position—in the middle of—support base) */form feature S-/functional relationship S-/feature independent(s)S

Ex.:(central hole—supports—principal axis).

The work developed by McGinnis and Ullman[9]are fundamental ideas for the understanding the relation-ships among constraints and design features on initial design phases,mainly during informational(clari?ca-tion task)and conceptual phases.Also,the protocol structures above show a certain relationship pattern that may be used for standardization of the interrelationships between constraints and design features,considering form and functional aspects.

Au and Yuen[11]also developed research with the same goal as McGinnis and Ullman[9].Au and Yuen propose a hierarchical structure of the vocabulary between objects,features,and relations(constraints),as shown in Fig.3.This structure was represented through a feature graph.By analyzing and comparing this graph with other structures proposed in other researches[9,11,14],it could be concluded that the feature graph might be used to represent graphically the protocol established by McGinnis and Ullman[9].It meets and satis?es the consistent data structure to relate constraints and features.

A representation of the evolution and transformation of the design data based on feature model was also proposed by Achten and Leeuwen[3].They accom-plished a case study of the architectural design domain. Based on the drawings that represented the design phases,they made an analysis following the steps mentioned below:

*In each phase,they identi?ed the information in the features in order to be aware of the information type to be treated in the problem;

*If the elements are new,then they made the de?nition and the type registration of the simple and complex features.

Ex.:Example of a Sketch feature type

complex ConceptualFeature.sketch.Sketch{

TypeDate{12/03/2002}

TypeAuthor{RR}

TypeDescr{‘‘Store the general shapes and rough dimensions of the design sketch’’}

Spec ConceptualFeature.sketch.Sketch con-tains[0..?];

Spec User.value.Dimension dimension[0..?];

Spec User.value.Function function;

Has ConceptualFeature.structure.Associa-tedFeatures listFeatures;

Spec User.value.NumberOfFeatures num-berOfFeatures;

}

*In the case of features already de?ned,they made the instantiation of the corresponding objects,?lling out the respective attributes.

Ex.:Instantiation of a Sketch steelStructure feature, given by the authors

Entity Graph Vocabulary

Vertex

Object (O) Feature (F)

Edge

Object–Feature

relation (R

OF

)

Feature–Feature

relation (R

FF

) Fig.3.Hierarchical structure of the entity graph vocabulary(Au and Yuen[11]).

R.R.M.da Cunha,A.Dias/Robotics and Computer Integrated Manufacturing18(2002)275–281 278

ConceptualFeature.sketch.Sketch steelStructure={

contains[1]=bar1dimension[1]=20contains[2]=bar2dimension[2]=10

function={FunctionSupport}listFeatures={slab1,slab2}numberOfFeatures=2

}

The types and the instances of the features are de?ned and represented textually through a language of speci?c de?nition,called feature type de?nition language (FTDL),just as shown above in examples.A tool developed in that work and described in other researches supports this language.

As Achten and Leeuwen [3]describe the trans-formations of the product object using a set of prede?ned objects,it will use the objects that encapsulate the design information,such that they will serve as a mean to visualize the evolution during the design phases;and to constitute the phase’s design feature.

Regli and Cicirello [12]also proposed a design signature represented by a graphical structure,which consisted of a hypergraph,where the vertices repre-sented the design attributes and the entities in the boundary model that the attributes refer to.

Generally,these researches are based on product model,which works as an interface among different product viewpoints.For Van Der Net,mentioned by Maziero et al.[14],the product model should satisfy three basic needs:

*

In an integration vision of the product life cycle—it is to capture and to register the intentions,wishes and the designer’s reasoning;

*

In a design vision—it is to create a consistent product description to aid their design,as well as subsequent activities of the life cycle;

*

In a production vision—it allows to analyze the product manufacturability,simultaneously to the design development.

These topics above favor concurrent engineering (CE),and integrated product development.But the idea of a global product model constituted for several views of the product needs two basic requirements,namely:

*

A consistent,extensible and reusable data structure,which needs standards of objects de?nition,terminol-ogy,procedures and computational architecture [7];*

A consensual design methodology to orient the process design.

These two requirements will be discussed in the next section.

3.Design phase features

3.1.Design methodology by using CAD systems for product documentation

Reusing,sharing and exchanging of data and information in the design process need a consistent computational and methodological background.So,it is necessary to follow a design methodology with well-de?ned phases.

This paper will use the design methodology de?ned by Pahl and Beitz [1],as shown in Fig.4(a)and (b).Many other researchers have used the same sequence of phases to describe the design process of the product.

It has been observed that the product documentation is made only during the detailed design,as shown in Fig.4(a).In this paper,it will be considered that product documentation has to be made during the whole design process,as shown in Fig.4(b)and it is recommended by Cunha [13].So,much information related to the product

(a)

(b)

Fig.4.Design phases and product documentation using CAD systems.

R.R.M.da Cunha,A.Dias /Robotics and Computer Integrated Manufacturing 18(2002)275–281279

conception has to be encapsulated in a new data structure.The question is what kind of data structure has to be used in order to ful?ll all the information concerned in all the design phases of a product?And how will the new data structure be used and integrated to CAD systems?

3.2.Object-oriented data structure of design

The features are modeled as objects that encapsulate the geometric and topological data and their semantics (identity,state,and behavior)with speci?c attributes of each design phase.In this paper,the feature concept will be used to de?ne the new data structure to document each design process phase.

Fig.5shows a hierarchical proposal of features based on the design process,which focus on the evolution of the mechanical design during the process phases.

The hierarchical structure assumes a generalization/specialization relationship characteristic,that is,each feature class is an evolution of the previous class and inherits its attributes and methods.

Each feature is a class that assumes a whole/part relationships’characteristic;design phase feature con-stitutes for many other design features that are speci?c to the design context of the product modeling.

The superclass Feature class has generic attributes for feature identi?cation,and manipulation methods,such as instantiation,and insertion/deletion of the feature in a CAD model.The goal is that other classi?cations should get their attributes by using the inheritance mechanism.It favors data reusability and data sharing among different contexts or views of the product.

Other classes of features—Informational,Conceptual,Preliminary,and Detailed—are the specialization of the superclass Feature.They will be de?ned by the composition of other features,such that they represent and characterize the corresponding design phase.3.3.The data design evolutions and transformations Some examples of identi?cation of features that characterize the design process phases will be presented.Object-based computer modeling suggests compositions of objects that become easier to spread various applications to this data structure,such as that shown in Fig.5.

The data structure of the informational and con-ceptual phases should be able to instance features like

tables that feed database and vice versa.Most of the data in those phases are organized in databases,in order to evaluate user speci?cations,design restrictions,capabilities and tools to manufacture and evaluate cost.No geometric shapes are present in these phases,although some sketches of the product may appear in the end of the conceptual phase.Some information begins to be linked to the graphic forms,which can be instantiated later as basic features of the CAD system.In the informational design,Informational Feature class can represent the data structure that has the following form:

Informational Feature {

Constraint List Material List

ClientRequirement Table DesignRequirement Table y

}

The information in this phase is characterized as having a textual and descriptive nature.The Informa-tional Feature gets attributes such as the list of design constraints,a rough bill of materials (BOM)of its component parts,client requirement table,and design requirement table.The main goal is to obtain the ?rst version of the design speci?cations.

Following the design methodology,the Concep-tual Feature class is where the Informational Feature becomes a structure of functions.So,these can be composed of the following:

Conceptual Feature {

GlobalFunction List PartialFunction List

ElementaryFunction List DesignIcon List y

}

In this phase,the information is built by the list of pro-duct functions:global,partial and elementary functions.The main goal here is to obtain a product conception or an alternative solution to the design problem.

In the preliminary design phase,the geometric information is still not de?nitive.But the structure of functionality of product takes form.Some geometry and its relationships begin to become visible.All the information captured in this phase will be de?ned as

Feature

F EATURE

I NFORMATIONAL

F EATURE C ONCEPTUAL F EATURE P RELIMINARY F EATURE D ETAILED Fig.5.Feature classi?cation on mechanical design process.

R.R.M.da Cunha,A.Dias /Robotics and Computer Integrated Manufacturing 18(2002)275–281

280

the Preliminary Feature class.This feature can be composed of the following:

Preliminary Feature{

ProductSketch Shape

HolePosition&Direction

HoleDirection&Direction

MainProduct Regions

y

}

The Preliminary Feature class encompasses general information,such as a sketch of product shape, positions,locations of parts,and subsystems.The main goal here is to obtain a product layout that ful?lls each design requirement,user speci?cation and design con-straints introduced in the conceptual and informational phases.

Once the embodiment of the product is obtained,it is ready to be detailed.The Detailed Feature class composes the product data structure,where each part and its details have been de?ned in order to be manufactured.This paper suggests that it is possible to use a conventional CAD system that provides customi-zation tools.So,such a class has to encompass data that can be used by a CAD system,in order to make the designer task fast and time saving.The Detailed Feature may have the following form:

Detailed Feature{

BasicFeatures List

Compound Features

y

}

The data and information present in this class should make it easy to get a?nal and detailed product with all the information necessary to create the geometric and non-geometric CAD model,and to link the product development with subsequent activities.

An application to manage the proposed data structure will be implemented using the Java programming language,and the integration with the CAD system should occur during the detailed design phase.All the design information can be stored by using the object persistence mechanism provided by Java.

4.Conclusion

The classes of the phase’s design features represented in this paper are only a schematic representation of the kinds of attributes present in the respective classes. This paper introduced a proposal for a wider data structure of product design process.The next step of this research is to model and de?ne more precisely the design data and information,such that product design data can be captured in each phase.The main challenge is to structure each feature class so that it can link non-geometric data to geometric CAD model to represent the data needed in the product design evolution.

Special attention should be given to the modeling of the design data and design information,which will decide the success or failure of this proposal for ef?cient exchange and sharing of data among the different mechanical design phases.It has to be integrated to appropriate computational tools such as CAD systems with database capabilities.These issues are prevalent in current researches and it will be incorporated into the next CAD system generation.

References

[1]Pahl G,Beitz W.Engineering design—a systematic approach.2a.

ed.Springer:London,1996.p.544.

[2]Ohsuga S.Toward intelligent CAD https://www.doczj.com/doc/461675366.html,put Aided Des

1989;21(5):316–37.

[3]Achten H,van Leeuwen J.A feature-based description for design

processes:a case study.1998,URL:http://ds.calibre.bwk.tue.nl/ research/publications,October,2000.

[4]Stair RM.Principles of information systems—a managerial

approach.2nd ed.Thompson Publishing Inc.,1996.

[5]Warman EA.Object oriented programming and CAD.J Eng Des

1990;1(1):37–46.

[6]Kumar V,Burns D,Dutta D,Hoffmann C.A framework for

object https://www.doczj.com/doc/461675366.html,put Aided Des1999;31(9):541–56.

[7]Day M.Objects in CAD,CADD&CADdesk–Web Resource,

2000,URL:https://www.doczj.com/doc/461675366.html,.

[8]Shah JJ.Assessment of features https://www.doczj.com/doc/461675366.html,put Aided Des

1991;23(5):331–43.

[9]McGinnis BD,Ullman DG.The evolution of commitments in the

design of a component.J Mech Des1992;114,URL:www.engr.

https://www.doczj.com/doc/461675366.html,/B ullman.

[10]Salomons OW,van Houten FJAM,Kals HJJ.Review of research

in feature-based design.J Manuf Syst1993;12(2):27.

[11]Au CK,Yuen MMF.A semantic feature language for sculptured

object https://www.doczj.com/doc/461675366.html,put Aided Des2000;32:63–74.

[12]Regli WC,Cicirello VA.Managing digital libraries for computer-

aided https://www.doczj.com/doc/461675366.html,put Aided Des1999;32:119–32.

[13]da Cunha RRM.Feature-based exchange of data and informa-

tion on mechanical design phases applying CAD systems(original in Portuguese),Florian!opolis-SC–South of Brazil,November-2000(Qualifying),Mechanical Engineering Department,Federal University of Santa Catarina,2000.110pp.

[14]Maziero NL,Ferreira JCE,Pacheco FS,Prim MF.A feature-

based object-oriented expert system to model and support product design.J Braz Soc Mech Sci2000;XXII(4):523–43.

R.R.M.da Cunha,A.Dias/Robotics and Computer Integrated Manufacturing18(2002)275–281281

数据库系统原理课后答案 第九章

9.1 名词解释 (1)OODBS:是指面向对象数据库系统,它既具数据库管理的基本功能,又能支持面向对象的数据模型。 (2)ORDBS:基于对象关系数据模型的DBS称为对象关系数据库系统(ORDBS)。 (3)平面关系模型:传统的关系模型称为“平面关系模型”,它要求关系模式具有第一范式(1NF)性质,关系具有规范化的结构。也就是规定属性值是不可分解的,即不允许属性值具有复合结构(元组或关系)。 (4)嵌套关系模型:是从平面关系模型发展而成的。它允许关系的属性值又可以是一个关系,而且可以出现多次嵌套。嵌套关系突破了1NF的定义框架,是“非1NF关系”。 (5)复合对象模型:在嵌套关系模型上进一步放宽要求。在关系定义上,集合与元组不再有交替出现的严格限制,此时的关系中,属性类型可以是基本数据类型、结构类型(元组类型)或集体类型(即关系类型)。 (6)数据的泛化/细化:是对概念之间联系进行抽象的一种方法。当在较低层上的抽象表达了 与之联系的较高层上抽象的特殊情况时,就称较高层上抽象是较低层上抽象的"泛化",而较低层上抽象是较高层上抽象的"细化"。 (7)对象关系模型:在传统关系数据基础上,提供元组、数组、集合等更为丰富的数据类型及处理新数据类型操作的能力而形成的数据模型。(注:传统关系模型只支持字符、数值、字串,布尔值等等基本数据类型及其处理功能) (8)类型级继承性:当继承性发生在类型级时,子类型继承了超类型的属性。也就是说,超类型所具有的属性,在子类上也具有。 (9)表级继承性:继承性也可发生在表级,(就是元组集合上发生继承),子表继承超表全部属性,超表中每个元组最多可以与子表中一个元组对应,而子表中的每个元组在超表中恰有一个元组对应,并在继承的属性值上具有相同的值。 (10)引用类型:数据类型可以嵌套定义,在嵌套引用时,不是引用对象本身,而是个用对象标识符(即指针),这种指针被称为引用类型。 (11)对象:客观世界中的实体经过抽象称为问题空间中的对象,它是对一组信息及其操作的描述。 (12)类:是具有相同的变量名和类型、相同的消息和使用方法的对象的集合。 (13)单重继承性:一个子类继承某一个超类的结构和特性,称为单重继承性。 (14)多重继承性:一个子类继承多个超类的结构和特性,称为多重继承性。 (15)对象标识:在面向对象语言中,对象标识是一个指针一级的概念,在对象创建的瞬间,由系统赋给每个对象一个“标识”,即系统内的一个唯一的指针,在对象生存期内,这个标识不可改变。 (16)对象包含:不同类的对象之间存在的包含关系称为对象包含。包含是一种“一部分”(is part of)的联系。 (17)类继承层次图:表示类继承关系的图,由超类名、子类名和一组线条自上而下有序的表示。(18)类包含层次图:表示对象包含关系的图,由一些具有包含关系的对象和线条自上而下表示(下方的对象为其连线所指上方对象的一部分)。 (19)持久数据:是指创建这些数据的程序运行终止后数据依然存在于系统之中。数据库中的关系就是持久数据。 (20)持久对象:程序运行结束后,被保留下来的对象称为持久对象。 (21)持久指针:持久指针可看作是数据库中指向对象的指针。持久化指针不像内存中的指针,它在程序执行后及数据重组后仍保持有效。 (22)持久化C++系统: 基于C++的持久化扩充的OODBS。

数据库系统原理(含答案)

数据库系统原理自测题(2) 一、单项选择题 1.数据库物理存储方式的描述称为【B】A.外模式B.内模式 C.概念模式D.逻辑模式 2.在下面给出的内容中,不属于DBA职责的是【A】A.定义概念模式B.修改模式结构 C.编写应用程序D.编写完整行规则 3.用户涉及的逻辑结构用描述【C】A.模式B.存储模式 C.概念模型D.逻辑模式 4.数据库在磁盘上的基本组织形式是【B】A.DB B.文件 C.二维表 D.系统目录 5.在DBS中,最接近于物理存储设备一级的结构,称为【D】A.外模式B.概念模式C.用户模式D.内模式 6.从模块结构考察,DBMS由两大部分组成:【B】A.查询处理器和文件管理器B.查询处理器和存储管理器 C.数据库编译器和存储管理器D.数据库编译器和缓冲区管理器 7.设W=R?S,且W、R、S的属性个数分别为w、r和s,那么三者之间应满 足【A】 A.w≤r+s B.w<r+s C.w≥r+s D.w>r+s 8.数据库系统的体系结构是数据库系统的总体框架,一般来说数据库系统应具有三级模式体系结构,它们是【A】A.外模式、逻辑模式和内模式B.内模式、用户模式和外模式 C.内模式、子模式和概念模式D.子模式、模式和概念模式 9.ER图是表示概念模型的有效工具之一,在ER图中的菱形框表示【A】A.联系B.实体 C.实体的属性D.联系的属性 10.数据库管理系统中数据操纵语言DML所事项的操作一般包括【A】A.查询、插入、修改、删除B.排序、授权、删除 C.建立、插入、修改、排序D.建立、授权、修改 11.设有关系R(A,B,C)和关系S(B,C,D),那么与R?S等价的关系代数表达式是【C】

数据库系统原理答案

西安交通大学现代远程教育考试卷

试做以下各题: (1)取出为工程J1提供零件的供应商的代号; select sno from spj where jno in( select jno from j where jn ame = j1); ⑵ 取出由供应商S1提供零件的零件的工程的名称; select jn ame from j,spj where spj.j no = j.jno and pno in (select pno from s,spj where s.s no = spj.s no and pn ame =s1); (3)取出上海的供应者提供给上海的任一工程的零件的代号; select pno from j,spj where j.jno = spj.j no and j.city ='上海'and spj.s no in (select sno from s where city='上海'); (4)把所有红色零件改为橙色。update p set color =橙色'where color ='红色) 四、回答下列冋题:(15 分) S( D, E, F) T( D, F, G) 设有下、列关 D ) B, C, a1 b1 c1 d1 d1 e2 f1 d1 f1 g1 a1 b1 c1 d2 d2 e1 f2 d2 f2 g2 a2 b2 c2 d1 d2 e2 f3 d3 f1 g3 a2 b3 c2 d2 d3 e3 f1 a2 b1 c2 d3 a3 b2 c2 d1 a3 b2 c3 d2 试求下列关系表达式的值: T3: R31(x)R32(y)R33(z)W34(x) T4: R41(x)R42(y)R43(z)W44(y) S 为对T1、T2、T3和T4的一个调度: S:R21(x)W22(x)R31(x)R23(y)W24(y)R32(y)R11(y)R25(z)W26(z) R33(z)W34(x)R12(x)R13(z)W14(x)R41(x)R42(y)R15(y)W16(z)R43(z)W44(y) (1)试画出调度S的前趋图。 (2)试判别S是否为冲突可串行的调度。如果是,请给出其等价的串行调度。答:因为图中没有圈,因此S事冲突可串行化的。等价的串行调度为 T2—T3—T1—T4 (1) E1={t |(?u)(?v)(?w)(R(u) A S(v)A T(w) A u[1] <' a3'A v[2] <'e3'A w[3]工'g3'A u[4]=v[1] A v[1]=w[1] A v[3]=w[2] A t[1]=u[1] A t[2]=u[2] A t[3]=u[3] A t[4]=v[1] A t[5]=w[2])} 答: E1(_A, B, C, D, F) a1 b1 c1 d1 f1 a2 b2 c2 d1 f1 a1 b1 c1 d2 f2 a2 b3 c2 d2 f2 (2)丨丨B, C, D,GF(;「B * ' b2' A D > 'd1' A F * 'f2' (R? S? T)) 答: {(b1,c2,d3,g3,f1)} 五、设有下面4个事务:(15分) T1: R11(y)R12(x)R13(z)W14(x)R15(y)W16(z) T2: R21(x)W22(x)R23(y)W24(y)R25 (z)W26(z)

04735--数据库系统原理

数据库系统原理 课程代码:04735 一、单选题 1、( C )是描述事物的符号记录,是数据库中存储的基本对象。描述事物的符号可以是数字,也可以是文字、图形、图像、声音、语言等。数据有多种表现形式,它们都可以经过数字化后存入计算机。 A、视图 B、表 C、数据 D、数据库 2、数据库的简称( B ) A、DA B、DB C、BD D、DD 3、( D )是指长期储存在计算机内的、有组织的、可共享的数据集合,以及数据之间的逻辑关系的集合。 A、视图 B、数据 C、表 D、数据库 4、数据库管理系统简称( D ) A、DDA B、DB C、DBA D、DBMS 5、( A )是位于用户与操作系统之间的一层数据管理软件。 A、数据库管理系统 B、数据库 C、数据库系统 D、数据库管理员 6、( A )是自由软件,因此不属于厂商产品,所以归属于应用中间件软 件。 A、MSSQL B、MySQL C、oracle D、linux 7、数据库系统简称( B ) A、DBA B、DB C、DBS D、DBMS 8、从事数据库管理工作的人员称为数据库管理员,简称为( A ) A、DB B、DBA C、DBMS D、DSA 9、( A )是指对各种数据进行收集、存储、加工和传播的一系列活动的总和。 A、数据处理 B、数据管理 C、数据组织 D、数据维护 10、( A )是指对数据进行分类、组织、编码、存储、检索和维护,它是数据处理的中心问题。 A、数据管理 B、数据处理 C、数据加工 D、数据收集 11、数据库的核心任务是( D ) A、数据收集 B、数据整理 C、数据组织 D、数据管理

数据库系统原理试题答案

《数据库系统原理》期中试题答案 一.选择题(每小题2分,共40分) 1.下列模型中数据抽象级别最高的是() A.概念模型B.逻辑模型 C.外部模型D.物理模型 2.设有关系R(A,B,C)和S(B,C,D),下列各关系代数表达式不成立 ...的是() (R D(S)B.S A.П C.R∪S D.ПB(R)∩ПB(S) 3.根据关系数据基于的数据模型——关系模型的特征判断下列正确的一项:(___) A.只存在一对多的实体关系,以图形方式来表示。 B.以二维表格结构来保存数据,在关系表中不允许有重复行存在。 C.能体现一对多、多对多的关系,但不能体现一对一的关系。 D.关系模型数据库是数据库发展的最初阶段。 4.下列说法错误的是() A.一个基本表可以跨一个或多个存储文件 B.一个存储文件可以跨一个或多个基本表 C.每个存储文件与外部存储器上一个物理文件对应 D.每个基本表与外部存储器上一个物理文件对应 5.在SQL语言中,数值函数COUNT(列名)用于() A.计算元组个数B.计算属性的个数 C.对一列中的非空值计算个数D.对一列中的非空值和空值计算个数 6.将弱实体转换成关系时,弱实体的主码() A.由自身的候选关键字组成B.由父表的主码组成 C.由父表的主码和自身的候选关键字组成D.不确定 7.从一个数据库文件中取出满足某个条件的所有记录的操作是() A.选择B.连接 C.投影D.复制 8.下面关于自然连接与等值连接的各个叙述中,不正确 ...的是() A.自然连接是一种特殊的等值连接 B.自然连接要求两个关系中具有相同的属性组,而等值连接不必 C.两种连接都可以只用笛卡尔积和选择运算导出 D.自然连接要在结果中去掉重复的属性,而等值连接则不必 9.SQL语言是关系数据库的标准语言,它是()

数据库系统原理教程习题答案(第1章)

第1章绪论 1 .试述数据、数据库、数据库系统、数据库管理系统的概念。 答: ( l )数据(Data ) :描述事物的符号记录称为数据。数据的种类有数字、文字、图形、图像、声音、正文等。数据与其语义是不可分的。解析在现代计算机系统中数据的概念是广义的。早期的计算机系统主要用于科学计算,处理的数据是整数、实数、浮点数等传统数学中的数据。现代计算机能存储和处理的对象十分广泛,表示这些对象的数据也越来越复杂。数据与其语义是不可分的。500 这个数字可以表示一件物品的价格是500 元,也可以表示一个学术会议参加的人数有500 人,还可以表示一袋奶粉重500 克。 ( 2 )数据库(DataBase ,简称DB ) :数据库是长期储存在计算机内的、有组织的、可共享的数据集合。数据库中的数据按一定的数据模型组织、描述和储存,具有较小的冗余度、较高的数据独立性和易扩展性,并可为各种用户共享。 ( 3 )数据库系统(DataBas 。Sytem ,简称DBS ) :数据库系统是指在计算机系统中引入数据库后的系统构成,一般由数据库、数据库管理系统(及其开发工具)、应用系统、数据库管理员构成。解析数据库系统和数据库是两个概念。数据库系统是一个人一机系统,数据库是数据库系统的一个组成部分。但是在日常工作中人们常常把数据库系统简称为数据库。希望读者能够从人们讲话或文章的上下文中区分“数据库系统”和“数据库”,不要引起混淆。 ( 4 )数据库管理系统(DataBase Management sytem ,简称DBMs ) :数据库管理系统是位于用户与操作系统之间的一层数据管理软件,用于科学地组织和存储数据、高效地获取和维护数据。DBMS 的主要功能包括数据定义功能、数据操纵功能、数据库的运行管理功能、数据库的建立和维护功能。解析DBMS 是一个大型的复杂的软件系统,是计算机中的基础软件。目前,专门研制DBMS 的厂商及其研制的DBMS 产品很多。著名的有美国IBM 公司的DBZ 关系数据库管理系统和IMS 层次数据库管理系统、美国Oracle 公司的orade 关系数据库管理系统、s 油ase 公司的s 油ase 关系数据库管理系统、美国微软公司的SQL Serve ,关系数据库管理系统等。 2 .使用数据库系统有什么好处? 答: 使用数据库系统的好处是由数据库管理系统的特点或优点决定的。使用数据库系统的好处很多,例如,可以大大提高应用开发的效率,方便用户的使用,减轻数据库系统管理人员维护的负担,等等。使用数据库系统可以大大提高应用开发的效率。因为在数据库系统中应用程序不必考虑数据的定义、存储和数据存取的具体路径,这些工作都由DBMS 来完成。用一个通俗的比喻,使用了DBMS 就如有了一个好参谋、好助手,许多具体的技术工作都由这个助手来完成。开发人员就可以专注于应用逻辑的设计,而不必为数据管理的许许多多复杂的细节操心。还有,当应用逻辑改变,数据的逻辑结构也需要改变时,由于数据库系统提供了数据与程序之间的独立性,数据逻辑结构的改变是DBA 的责任,开发人员不必修改应用程序,或者只需要修改很少的应用程序,从而既简化了应用程序的编制,又大大减少了应用程序的维护和修改。使用数据库系统可以减轻数据库系统管理人员维护系统的负担。因为DBMS 在数据库建立、运用和维护时对数据库进行统一的管理和控制,包括数据的完整性、安全性、多用户并发控制、故障恢复等,都由DBMS 执行。总之,使用数据库系统的优点是很多的,既便于数据的集中管理,控制数据冗余,提高数据的利用率和一致性,又有利于应用程序的开发和维护。读者可以在自己今后的工作中结合具体应用,认真加以体会和总结。 3 .试述文件系统与数据库系统的区别和联系。 答: 文件系统与数据库系统的区别是:文件系统面向某一应用程序,共享性差,冗余度大,数据独立性差,记录内有结构,整体无结构,由应用程序自己控制。数据库系统面向现实世界,共享性高,冗余度小,具有较高的物理独立性和一定的逻辑独立性,整体结构化,用数据模型描述,由数据库管理系统提供数据的安全性、

数据库系统原理第一章习题

第1章绪论 一、选择题 1、数据库系统的核心和基础是()。 A. 物理模型 B. 概念模型 C. 数据模型 D. 逻辑模型 2、实现将现实世界抽象为信息世界的是()。 A. 物理模型 B. 概念模型 C. 关系模型 D. 逻辑模型 3、数据管理技术经历了若干阶段,其中人工管理阶段和文件管理阶段相比文件系统的一个显著优势是()。 A. 数据可以长期保存 B. 数据共享性很强 C. 数据独立性很好 D. 数据整体结构化 4、能够保证数据库系统中的数据具有较高的逻辑独立性的是()。 A. 外模式/模式映像 B. 模式 C. 模式/内模式映像 D. 外模式 5、DBMS是一类系统软件,它是建立在下列哪种系统之上的?() A. 应用系统 B. 编译系统 C. 操作系统 D. 硬件系统 6、下列说法中,正确的是()。 A. 数据库的概念模型与具体的DBMS有关 B. 三级模式中描述全体数据的逻辑结构和特征的是外模式 C. 数据库管理员负责设计和编写应用系统的程序模块 D. 从逻辑模型到物理模型的转换一般是由DBMS完成的 7、长期存储在计算机内,有组织的、可共享的大量数据的集合是()。 A. 数据 B. 数据库 C. 数据库管理系统 D. 数据库系统 8、在数据管理技术发展过程中,需要应用程序管理数据的是()。 A. 人工管理阶段 B. 人工管理阶段和文件系统阶段 C. 文件系统阶段和数据库系统阶段 D. 数据库系统阶段 二、判断题 1、通常情况下,外模式是模式的子集。() 2、数据库管理系统是指在计算机系统中引入数据库后的系统,一般由DB、DBS、应用系统和DBA组成。()

3、在数据模型的组成要素中,数据结构是刻画一个数据模型性质最重要的方面,人们通常按照数据结构的类型来命名数据模型。() 4、数据库系统的三级模式是对数据进行抽象的3个级别,把数据的具体组织留给DBMS管理。() 三、填空题 1、数据库系统的三级模式结构是指数据库系统是由____________、____________和_____________三级构成。 2、两个实体型之间的联系可以分为三种:一对一联系、______________和_____________。 3、数据库的三级模式结构中,描述局部数据的逻辑结构和特征的是______________。 4、数据模型的组成要素中描述系统的静态特性和动态特性的分别是________________和__________________。 5、最经常使用的概念模型是________________。

数据库系统原理及应用教程第四版课后答案

第一章 1、(1)数据:数据用于载荷信息的物理符号。 (2)数据的特征;○1数据有“型”和“值”之分;○2数据受数据类型和取值范围的约束;○3数据有定性表示和定量之分;○4数据应具有载体和多种表现形式。 3、(1)数据管理的功能:○1组织和保存数据功能,即将收集到的数据合理地分类组织,将其存储在物理载体上,使数据能够长期的被保存;○2数据维护功能,即根据需要随时进行插入新数据,修改原数据和删除失效数据的操作;○3数据查询和数据统计功能,即快速的得到需要的正确数据,满足各种使用要求;○4数据的安全和完整性控制功能,即能保护数据的安全和完整性。 (2)数据管理的目标:收集完整的信息,将信息用数据表示,按数据结构合理科学的组织并保存数据;为各种使用快速地提供需要的数据,并保护数据的安全和完整性。 4、(1)数据库:是数据管理的新方法和技术,他是一个按数据结构来存储和管理数据的计算机软件系统。 (2)数据库中的数据具有的特点:○1数据库中的数据具有整体性,即数据库中的数据要保持自身完整的数据结构;○2数据库中的数据具有数据共享性,不同的用户可以按各自的用法使用数据库中的数据,多个用户可以同时共享数据库中的数据资源。 5、(1)数据库管理系统:它是专门用于管理数据库的计算机管理软件。数据库管理系统能够为数据库提供数据的定义、建立、维护、查询和统计等操作功能,并完成对数据完整性、安全性进行操作的功能。 (2)数据库管理系统主要功能:是数据存储、数据操作和数据控制功能。其数据存储和数据操作是:数据库的定义功能,指未说明库中的数据情况而进行的建立数据库结构的操作;数据库建立功能,指大批数据录入到数据库的操作,它使得库中含有需要保护的数据记录;数据库维护功能,指对数据的插入、删除和修改操纵,其操作做能满足库中信息变化或更新的需求;数据库查询和统计功能,指通过对数据库的访问,为实际应用提供需要的数据。数据库管理系统的数据控制功能为:数据安全性控制功能,即为了保证数据库的数据安全可靠,防止不合法的使用造成数据库泄露和破坏,也就是避免数据被人偷看、篡改或破坏;数据库完整性控制功能,指为了保证数据库中的数据的正确、有效和相容,防止不合语意的错误数据被输入或输出。 14、(1)数据库系统的软件由几部分组成?数据库系统的软件中包括操作系统(OS)、数据库管理系统(DBMS)、主语言系统、应用程序软件和用户数据库。 (2)作用:①操作系统或汉字操作系统:操作系统是所有计算机软件的基础,在数据库系统中它起着支持DBMS及主语言系统工作的作用。如果管理的信息中有汉字,则需要中文操作系统的支持,以提供汉字的输入、输出方法和汉字信息的处理方法。②数据库管理系统和主语言系统:数据库管理系统是为定义、建立、维护、使用及控制数据库而提供的有关数据管理的系统软件。主语言系统是为应用程序提供的诸如程序控制、数据输入输出、功能函数、图形处理、计算方法等数据处理功能的系统软件。③应用开发工具软件:应用开发工具是DBMS系统为应用开发人员和最终用户提供的高效率、多功能的应用生成器、第四代计算机语言等各种软件工具.如报表生成器、表单生成器、查询和视图设计器等,它们为数据库系统的开发和使用提供了良好的环境和帮助。④应用系统及数据库:数据库应用系统包括为特定的应用环境建立的数据库、开发的各类应用程序及编写的文档资料,它们是一个有机整体。通过运行数据库应用系统,可以实现对数据库中数据的维护、查询、管理和处理操作。(3)关系:

04735《数据库系统原理》复习题答案(汇编)

数据库系统原理(课程代码04735) 一、单项选择题(本大题共24小题)在每小题列出的四个备选项中只有一个是最符合题目要求的,请将其代码填写在题后的括号内。错选、多选或未选均无分。 1.DBS具有较高的数据独立性,是因为DBS采用了【 B 】A.嵌入式语言B.三级模式结构 C.DD D.六个层次的存储介质 2.在层次、网状模型中,起导航数据作用的是【A 】A.指针B.关键码 C.DD D.索引 3.设关系R(A,B,C)和关系S(B,C,D), 那么与R?S等价的关系代数表达式是【B 】A.σ2=4(R?S)B.σ2=4(R×S) C.σ2=1(R?S)D.σ2=1(R×S) 4.设关系R和S的结构相同,分别有m和n个元组,那么R-S操作的结果中元组个数为【 C 】A.为m-n B.为m C.小于等于m D.小于等于(m-n) 5. 设有两个事务T1、T2,A、B的初始值分别为10和5,其并发操作如图1所示,下面评价正确的是【C 】A.该调度(schedule)不存在并发问题B.该调度是可串行化的(serializable)。 C.该调度存在冲突(conflict)操作D.该调度不存在冲突操作 T1 T2 read(A) read(B) sum=A+B read(A) A=A*2 write(A) read(A) read(B) sum=A+B write(A+B) 图1 事务并发操作图 6.设有关系R(A,B,C)的值如下:

A B C 5 6 5 6 7 5 6 8 6 下列叙述正确的是【 B 】A.函数依赖C→A在上述关系中成立B.函数依赖AB→C在上述关系中成立C.函数依赖A→C在上述关系中成立D.函数依赖C→AB在上述关系中成立7.设关系模式R(A,B,C,D),F是R上成立的FD集,F={ A→C,BC→D },那么ρ={ ABD,AC }相对于F 【 B 】 A.是无损联接分解,也是保持FD的分解 B.是无损联接分解,但不保持FD的分解 C.不是无损联接分解,但保持FD的分解 D.既不是无损联接分解,也不保持FD的分解 8.概念设计的结果得到的是概念模式。概念模式是【 D 】A.与DBMS有关的B.与硬件有关的 C.独立于DBMS的D.独立于DBMS和硬件的 9.在有关“弱实体”的叙述中,不正确的是【 C 】A.弱实体的存在以父实体的存在为前提 B.弱实体依赖于父实体的存在 C.父实体与弱实体的联系可以是1:1、1:N或M:N D.父实体与弱实体的联系只能是1:1或1:N 10.有15个实体类型,并且它们之间存在着15个不同的二元联系,其中5个是1:1联系类型,5个是1:N联系类型,5个M:N联系类型,那么根据转换规则,这个ER 结构转换成的关系模式有【 B 】 A.15个B.20个C.25个D.30个 11.关系运算中花费时间可能最长的运算是【C 】A.投影B.选择C.笛卡尔积D.除 12.关系规范化中的插入操作异常是指【D 】A.不该删除的数据被删除B.不该插入的数据被插入 C.应该删除的数据未被删除D.应该插入的数据未被插入 13.数据库在磁盘上的基本组织形式是【B 】A.DB B.文件 C.二维表 D.系统目录 14.在DBS中,最接近于物理存储设备一级的结构,称为【 D 】A.外模式B.概念模式C.用户模式D.内模式 15.从模块结构考察,DBMS由两大部分组成:【 B 】A.查询处理器和文件管理器B.查询处理器和存储管理器 C.数据库编译器和存储管理器D.数据库编译器和缓冲区管理器

《数据库系统原理》复习题(答案)

(一)填空题 1.数据管理经历了_______阶段、________阶段到________阶段的变迁。(手工管理、 文件管理、数据库管理) 2.实体之间联系的基本类型有______、_______、_______。(一对一、一对多、多对多) 3.在E-R图中,用____表示实体,用______表示联系,用______表示属性。(矩形框、菱形框、椭圆框) 4.数据库的三层模式结构是________、_________、_______。(外模式、逻辑模式、内模式) 5.关系模型中一般讲数据完整性分为三类:_________、___________、__________。 (实体完整性、参照完整性、用户定义完整性) 6.数据模型由三部分组成:数据结构、数据操作和____________。(数据的约束条件或数据完整性规则) 7.SQL语言是一种标准的数据库语言, 包括数据的查询、定义、操纵和______四部分功能。(控制) 8.视图是从其它________或视图导出的虚表。(基本表) 9.在关系模式R 中,若属性或属性组X 不是关系R 的关键字,但X 是其他关系模式的关键字,则称X 为关系R 的___________。(外关键字) 10.访问SQL server数据库对象时,需要经过身份验证和_________两个阶段,其中身份验证分为Windows验证模式和_______验证模式。(权限验证、混合) 11._______是存储在文件中的一系列SQL语句,即一系列按顺序提交的批处理。(脚本) 12.SQL语言中行注释的符号为_________;块注释的符号为_________。(--、/**/) 13.SQL server中的变量分为两种,全局变量和局部变量。其中全局变量的名称以_______字符开始,有系统定义和维护。局部变量以__________字符开始,由用户自己定义和赋值。(@@、@) 14.在SQL server中,其权限分为三类,即_________权限、_________权限和_________权限。(对象、语句、隐含) 15.用户对数据进行添加、修改和删除时,自动执行的存储过程称为_________。(触发器) 16.角色是一组用户所构成的组,可以分为服务器角色和_______角色。(数据库) 17.触发器有3种类型,即INSERT类型、_______和_______。(UPDATE类型、DELETE类型) 18.如果要计算表中的行数,可以使用聚合函数______。(COUNT()) 19.在SQL Server中修改表的结构应使用关键字,修改表中的数据应使用关键字。(ALTER 、UPDA TE) (二)单项选择题 1.一个仓库可以存放多种产品,而一种产品只能存放于一个仓库中。仓库与产品之间的联系类型是 (C )。 A、一对一的联系 B、多对一的联系 C、一对多的联系 D、多对多的联系 2.不属于传统数据模型的是(D)。 A、层次数据模型 B、网状数据模型 C、关系数据模型 D、面向对象数据模型 3.声明了变量:declare @i int,@c char(4),现在为@i赋值10,为@c赋值'abcd',正确的语句是(C)。 A、set @i=10,@c='abcd' B、set i=10 , set @c='abcd' C、select @i=10,@c='abcd' D、select @i=10, select @c='abcd' 4.长期存储在计算机内的有组织、可共享的数据集合是(C)。 A、数据库管理系统 B、数据库系统 C、数据库 D、文件组织

自考数据库系统原理完整版

自考《数据库系统原理》串讲笔记 第一章数据库基础知识 学习目的与要求: 本章属于基础知识,主要是对一些概念的理解和记忆。没有难点,相对的重点是数据模型的四个层次,数据库管理系统的功能,数据库系统的全局结构。 考核知识点与考核要求 1.1数据管理技术的发展阶段(识记) 1.2数据描述的术语(领会) 1.3数据抽象的级别(领会) 1.4数据库管理系统(DBMS) (领会) 1.5数据库系统(DBS)(领会) 1.1 数据管理技术的发展 几个数据库的基本术语: 数据:描述事物的符号记录 数据处理:是指从某些已知的数据出发,推导加工出一些新的数据,这些新的数据又表示了新的信息。 数据管理:是指数据的收集、整理、组织、存储、维护、检索、传送等操作,这部分操作是数据处理业务的基本环节,而且是任何数据处理业务中必不可少的共有部分。 数据管理技术:对数据的收集、整理、组织、存储、维护、检索、传送等操作,基本目的就是从大量的,杂乱无章的,难以理解的数据中筛选出有意义的数据。 数据处理是与数据管理相联系的,数据管理技术的优劣,将直接影响数据处理的效率。 1.人工管理阶段(20世纪50年代中期以前) 1)数据不保存在机器中; 2)没有专用软件对数据进行管理; 3)只有程序的概念,没有文件的概念; 4)数据面向程序。 2. 文件系统阶段特点与缺陷(20世纪50年代后期至60年代中期) 1)数据可长期保存在磁盘上; 2)数据的逻辑结构与物理结构有了区别; 3)文件组织呈现多样化; 4)数据不再属于某个特定程序,可以重复使用; 5)对数据的操作以记录为单位。 文件系统三个缺陷: 1)数据冗余性 2)数据不一致性

数据库系统原理名词解释

名词解释 1.数据独立性:是指应用程序和数据库的数据结构之间相互独立, 不受影响。 2.物理数据独立性:就是对内模式的修改尽量不影响逻辑模式,当 然对外模式和应用程序的影响更小。 3.逻辑数据独立性: 4.DBMS;是指数据库系统中对数据进行管理的软件系统,它是数据 库的核心组成部分。 5.关键码;能唯一标识实体的属性或属性集;能唯一标识文件中每个 记录的字段或字段集。 6.概念模型:表达用户需求观点的数据全局逻辑结构的模式型 7.逻辑模型:表达计算机实现观点的DB全局逻辑结构的模型。 8.外部模型:表达用户使用观点的DB局部逻辑结构的模型。 9.内部模型:表的DB物理结构的模型。 10.外模式:是用户与数据系统的接口,使用户用到的那部分数据的 描述。 11.内模式:是数据库在物理方面的描述,定义所有内部记录类型, 索引和文件的组织方式,以及数据控制方面的细节。 12.逻辑模式:是数据库中全部数据的整体逻辑结构的描述。 二. 1数据库系统的生存期:数据库应用系统从开始规划,设计,实现,维护,到最后被新的系统取代而停止使用的整个时间。

2.DFD(数据流图):是从“数据”和“对数据的加工”两方面表达数据处理系统工作过程的一种图形表示法,具有直观,已于被用户和软件人员双方都能理解的一种表达系统功能的描述方式。 3.简单属性:是不可在分割的属性。 4.复合属性:是不可分解其他属性的属性。 三.1.数据冗余:是指同一数据在系统中多次重复出现。 2.数据依赖:对于当前关系r的任意两个元组,如果x值相同,则要求Y值也相同,即有一个X值就有一个Y值与之相对应,或者说Y 值由X值决定。 3.平凡函数依赖: 4.候选键:X是R的一个超键,如果X→U在R上成立,但对于X的任意一个真子集X1,都有X1→U不成立,那么称X1是R上的一个候选键。 5,无损分解: 6第一范式:如果关系模式R的每个关系r的属性值都是不可分的原子值,那么称R是第一范式。 7.第二范式:如果关系R是1NF,且每个非主属性完全函数依赖候选键。那么称R是第二范式。 四.1.笛卡尔积:设关系R和S的元素分别是r和s,定义R和S的笛卡尔积是一个(r+s)元的元组集合,每个元组的前r个分量(属性值)来自R的元组,后s个分量来自S的一个元组,记为R×S。五.1,视图:在SQL中,外模式一级数据结构的基本单位是视图。

数据库系统原理 a卷

东莞理工学院城市学院(本科)试卷(A卷) 2015-2016学年第二学期 开课单位:计算机与信息科学系,考试形式:闭卷,允许带入场科目:数据库系统原理班级:14计算机科学与技术班/ 14软件工程班 姓名:学号: 题序一二三四五总分 得分 评卷人 一、单项选择题(在每小题的四个备选答案中,选出一个正确的答案,并将其 代码填入以下表格内。每小题1分,共30分) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1.逻辑模型下数据管理模型分为()与网状3类。 A、层次型、关系型 B、层次型、网络型 C、树型、层次型 D、星型、关系型 2.消除了部分依赖关系的1NF关系模式,必定是()。 A、1NF B、2NF C、3NF D、4NF 3.SQL Server配置管理器可停止服务与查看或更改服务属性,但不包括()。 A、启动服务 B、恢复服务 C、运行程序 D、暂停服务 4.在SQL Server 2008数据库中,下列不属于数据库对象的是()。 A、视图 B、表格 C、存储过程 D、规则 5.Transact-SQL中用于删除数据库的关键字是()DATABASE。 A、ALTER B、KILL C、DROP D、DELETE 6.备份设备是用来存储数据库事务日志等备份的()。 A、通用硬盘 B、存储介质 C、存储纸带 D、外围设备 7.使用局部变量名称前必须以()开头。

A、@ B、@@ C、local D、## 8.SQL Server 2008中支持的注释语句为()。 A、/!…!/ B、/*…*/ C、/#…#/ D、== 9.SQL语言中,BEGIN…END用来定义一个()。 A、过程块 B、方法块 C、语句块 D、对象块 10.EXISTS在子查询中用来测试()。 A、数据是否存在 B、列是否存在 C、表是否存在 D、行是否存在 11.SQL的视图是从()中导出的。 A、基本语言 B、基本触发器 C、基本表 D、基本库 12.按触发事件不同将触发器分为两大类:DML触发器和()触发器。 A、CLR B、DDL C、DDT D、URL 13.下列()操作不会同时影响到deleted表和inserted表。 A、SELECT B、INSERT C、UPDATE D、DELETE 14.在Transact-SQL中,删除计科角色成员的语句关键字为()。 A、sp_drop B、sp_droprolemember C、sp_droprole D、drop 15.SQL中,下列涉及空值的操作,不正确的是()。 A、AGE IS NULL B、AGE IS NOT NULL C、AGE = NULL D、NOT (AGE IS NULL) 16.当关系R和S做自然连接时,能够把R和S原该舍弃的元组放到结果关系中的操作是 ()。 A、左外连接 B、右外连接 C、外部并 D、外连接 17.存储过程的优点不包括()。 A、提高运行速度 B、降低网络通信量 C、存储在DB之外方便修改 D、间接实现安全控制 18.实体集书店与图书之间具有()联系。 A、一对一 B、一对多 C、多对多 D、多对一 19.把E-R图转换成关系模型的过程,属于数据库设计的()。 A、逻辑结构设计 B、物理结构设计 C、概念结构设计 D、总体结构设计 20.关系代数的五个基本操作是:并、差、选择、投影和()。 A、外连接 B、笛卡儿积 C、等值连接 D、自然连接 21.对数据库模式进行规范化处理,是在数据库设计的()。 A、需求分析阶段 B、概念设计阶段 C、逻辑设计阶段 D、物理设计阶段 22.嵌入式SQL的预处理方式,是指()。 A、识别出SQL语句,加上前缀标识和结束标志

数据库系统原理试题(1)

全国2011年1月高等教育自学考试 Java语言程序设计(一)试题 课程代码:04747 一、单项选择题(本大题共10小题,每小题1分,共10分) 在每小题列出的四个备选项中只有一个是符合题目要求的,请将其代码填写在题后的括号内。错选、多选或未选均无分。 1.在Java语言中,int类型数据的长度是( ) A.1个字节 B.2个字节 C.4个字节 D.8个字节 2.在switch语句中,switch后面括号内的表达式的类型不能 ..是( ) A.byte B.long C.char D.int 3.以下关于接口的叙述中,正确的是( ) A.所有的接口都是公共接口,可被所有的类和接口使用 B.一个类通过使用关键字interface声明自己使用一个或多个接口 C.接口中所有的变量都默认为public abstract属性 D.接口体中不提供方法的实现 4.以下代码段的输出结果是( ) String s="JavaWorld"; System.out.print(s.indexOf("a",4)); A.-1 B.O C.1 D.4 5.以下不属于 ...AWT库中定义的类是( ) https://www.doczj.com/doc/461675366.html,ponent B.Container C.Images D.Graphics 6.鼠标单击列表中某个选项事件的相关接口是( ) A.ListActionListener B.ListSelectionListener C.ActionListener D.SelectionListener 7.Java语言规定,程序绘图区域的坐标原点位于整个区域的( ) A.左上角 B.右上角 C.左下角 D.右下角 8.以下关于线程互斥和同步的叙述中,正确的是( ) A.多线程互斥使用各自资源的程序段,在操作系统中称为临界段 B.临界段的作用是使某线程能够使用其它线程的资源 C.可以使用notify()方法通知等待线程结束等待 D.线程的互斥和同步可以很好地解决死锁问题 9.当用户关闭文件对话框时,有可能返回的整数常量是( ) A.JFileChooser.CLOSE_OPTION B.JFileChooser.APPROVE_OPTION C.JFileChooser.SAVE_OPTION D.JFileChooser.OPEN_OPTION 10.获取InetAddress对象的域名所用到的方法是( ) A.getByName() B.getHostAddress() C.getLocalHost() D.getHostName() 二、填空题(本大题共10小题,每小题2分,共20分) 请在每小题的空格中填上正确答案。错填、不填均无分。 11.Java源文件的扩展名是_________。 12.表达式-4>>l的十进制值是_________。 13.在定义成员变量时,用关键字_________修饰的是类变量。

数据库系统原理与设计第版课后习题详细答案

数据库系统原理与设计习题集 第一章绪论 一、选择题 1. DBS是采用了数据库技术的计算机系统,DBS是一个集合体,包含数据库、计算机硬件、软件和()。 A. 系统分析员 B. 程序员 C. 数据库管理员 D. 操作员 2. 数据库(DB),数据库系统(DBS)和数据库管理系统(DBMS)之间的关系是()。 A. DBS包括DB和DBMS B. DBMS包括DB和DBS C. DB包括DBS和DBMS D. DBS就是DB,也就是DBMS 3. 下面列出的数据库管理技术发展的三个阶段中,没有专门的软件对数据进行管理的是()。 I.人工管理阶段 II.文件系统阶段 III.数据库阶段 A. I 和II B. 只有II C. II 和III D. 只有I

4. 下列四项中,不属于数据库系统特点的是()。 A. 数据共享 B. 数据完整性 C. 数据冗余度高 D. 数据独立性高 5. 数据库系统的数据独立性体现在()。 A.不会因为数据的变化而影响到应用程序 B.不会因为系统数据存储结构与数据逻辑结构的变化而影响应用程序 C.不会因为存储策略的变化而影响存储结构 D.不会因为某些存储结构的变化而影响其他的存储结构 6. 描述数据库全体数据的全局逻辑结构和特性的是()。 A. 模式 B. 内模式 C. 外模式 D. 用户模式 7. 要保证数据库的数据独立性,需要修改的是()。 A. 模式与外模式 B. 模式与内模式 C. 三层之间的两种映射 D. 三层模式 8. 要保证数据库的逻辑数据独立性,需要修改的是()。 A. 模式与外模式的映射 B. 模式与内模式之间的映射 C. 模式 D. 三层模式

《数据库系统原理试卷》(2-A)

华侨大学工商管理学院《数据库系统原理试卷》(A ) 系别、班级: 学号、姓名: 一 填空题。(18分) 1 数据库体系结构按照外模式、_ 模式 和 内模式 三级结构进行组织。 2 关系模式的定义主要包括关系名、 属性名 、属性类型、属性长度和_属性间的依赖关系__。 3 关系模型由关系数据结构、__关系操作______和______完整性约束_____三部分组成。 4 已知系(系编号、系名称、系主任、电话、地点)和学生(学号、姓名、性别、入学日期、专业、系编号)两个关系,则系关系的主码是 系编号,系关系的外码是 ,学生关系主码是 学号 ,外码是 系编号 5 在关系数据模型中,两个关系R1与R2之间存在1∶M 的联系,可以通过在一个关系R2中的___外码____在相关联的另一个关系R1中检索相对应的记录。 6 视图集成要消除分E-R 图之间的属性冲突、_命名冲突 和_结构冲突_三类冲突。 7 在关系代数运算中,笛卡尔积、 连接运算最费时间和空间。究竟应采用什么样的策略才能节省时间空间,这就是优化的准则。 8 数据库事务的四个特性是原子性、 一致性 隔离性和 __持续性____。 9 数据库系统的并发控制的主要方法是采用_____封锁方法____________。 10 数据库关系规范化的目的是控制冗余,避免不适合的数据依赖问题 ,从而增强数据库结构的稳定性和灵活性 二 选择题。(24分) 1 数据库系统的数据独立性是指 ( B ) A. 不会因为数据的变化而影响应用程序 B. 不会因为系统存储结构与数据逻辑结构的变化而影响应用程序 C. 不会因为某些存储策略的变化而影响存储结构 D. 不会因为某些存储结构的变化而影响其他的存储结构 2 若R 是r 元关系,则有: i S R θ||><= (C )。 A. )()(S R r j i ?+θσ B. )()(S R j j i ?+θσ C. )()(S R j r i ?+θσ D. )(S R j i ?θσ 3 参加差运算的两个关系 B 。 A.属性个数可以不相同 B.属性个数必须一致 C.一个关系包含另一个关系的属性 D.属性名必须相同 4 SQL 中,与“NOT IN ”等价的操作符是( D ) A.=SOME B.<>SOM C.=ALL D.<>ALL 5 当关系R 和S 自然联接时,能够把关系S 中原该舍弃的元组放到结果关系中的操作是

相关主题
文本预览
相关文档 最新文档