数据库英文课件

合集下载

英文数据库与英文文献检索通用课件

英文数据库与英文文献检索通用课件
Structured databases
These databases combine elements of structured and unstructured databases They provide some structure for organizing information, but not as strictly as fully structured databases
English Database and English Literature Retrieval
2023
REPORTING
Overview of English databasesIntroduction to commonly used English databasesEnglish Literature Retrieval SkillsReading and organizing English literaturePractice of English Database and Literature RetrievalAdvanced English Database and Literature Retrieval
PART
03
English Literature Retrieval Skills
2023
REPORTING
Choosing the appropriate keywords
The selection of keywords is crucial for the search results. Choosing keywords that are relevant to the topic and representative can improve the accuracy and efficiency of retrieval.

英文数据库SCIE的介绍

英文数据库SCIE的介绍

数据库简介
+
• SCIE的重要性
严格的选刊标准和评估程序挑选刊源。目前,它已成为国内外学术界制定学
科发展规划和进行学术排名的重要依据。
SCIE不仅作为一部文献检索工具使用,而且成为科研评价的一种依据。科研
机构被SCIE收录的论文总量,反映整个机构的科研、尤其是基础研究的水平; 个人的论文被SCIE收录的数量及被引用次数,反映他的研究能力与学术水平。
排除含有某一特定关键字的数据 标题=ArtificialIntelligenceNOTgeneticalgorithm 检索含有“ArtificialIntelligence”的数据,排除含有“geneticalgorithm”的文献
检索技术--邻近检索,NEAR
+
NEAR/x
使用 NEAR/x可查找由该运算符连接的检索词之间相隔指定数量的单词的记录。 该规则也适用于单词处于不同字段的情况。
Cited References
越查越旧
Related
11991
Citing
1980 1999
分析: 学科分布、发展趋 势、机构/作者等
2004
2003
2003
2004
2004
2002
1994
+
02
检索技术
检索技术
+
布尔检索(and,or,not) 邻近检索(near/x,SAME) 截词检索(*,$,?) 精确短语检索(“”) 词形还原检索(Lemmatization) 逻辑算符及其先后次序
英文数据库SCIE的介绍
主讲人:知识服务中心 雷琴
01
01
02
03
04
05

数据库系统概念(database system concepts)英文第六版 PPT 第11章

数据库系统概念(database system concepts)英文第六版 PPT 第11章

11.8
©Silberschatz, Korth and Sudarshan
Sparse Index Files (Cont.)
Compared to dense indices:

Less space and less maintenance overhead for insertions and deletions. Generally slower than dense index for locating records.
Database System Concepts - 6th Edition
11.3
©Silberschatz, Korth and Sudarshan
Index Evaluation Metrics
Access types supported efficiently. E.g.,

records with a specified value in the attribute or records with an attribute value falling in a specified range of values.
actual records with that particular search-key value.
Secondary indices have to be dense
Database System Concepts - 6th Edition 11.10 ©Silberschatz, Korth and Sudarshan
value in the file.
E.g. index on ID attribute of instructor relation

数据库系统概念(英文精编版.第六版)

数据库系统概念(英文精编版.第六版)


Atomicity of updates
Failures
may lead to inconsistencies (1) account_A = account_A – 100 (2) account_B = account_B + 100
Example:

Concurrent access by multiple users
Exercises
Computer users interacts with data in the _______ level A. physical B. logical C. view D. all of the above Application users interact with data in the _______ level. A. physical B. logical C. view D. all of the above How the data are actually stored is called _______ A. Physical level B. Logical level C. View level D. Conceptual level
property is called ( )
A. Data inconsistency C. Data isolation B. Data redundancy D. Data integrity
1.3 View of Data
Hierarchy of Abstraction Levels
Three Abstraction Levels of Data
机械工业出版社
本课程学习内容
关系数据模型 关系数据库语言

数据库 SQL 英文

数据库 SQL 英文
SQL: Queries, Constraints, Triggers
Chapter 5
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke
1
Overview

The Data Manipulation Language (DML)
11
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke
This subset of SQL allows users to pose queries and to insert, delete, and modify rows (Chapter 3).

The Data Definition Language (DDL)
This subset of SQL supports the creation, deletion, and modification of definitions for tables and views (Chapter 3).

Compute the cross-product of relation-list. Discard resulting tuples if they fail qualifications. Delete attributes that are not in target-list. If DISTINCT is specified, eliminate duplicate rows.
3
Reserves
Example Instances

sid bid day 22 101 10/10/96 58 103 11/12/96

数据库系统概念(database system concepts)英文第六版 第一章

数据库系统概念(database system concepts)英文第六版  第一章
n In the early days, database applications were built directly on top of file systems
Databa se Sy stem Concept s - 6th Edition
1 .3
©Silber schatz , Korth and S u dar
n Relational model (Chapter 2) n Example of tabular data in the relational model Columns
_____ Rows
Databa se Sy stem Concept s - 6th Edition
1 .10
©Silber schatz , Korth and S u dar
n Physical Data Independence – the ability to modify the physical schema without changing the logical schema l Applications depend on the logical schema l In general, the interfaces between the various levels and components should be well defined so that changes in some parts do not seriously influence others.
1 .5
©Silber schatz , Korth and S u dar
n Phys ical level : describes how a record (e.g., customer) is stored. n Logical level : describes data stored in database, and the relationships among the data. type instructor = record ID : string;

英文数据库(pubmed)

英文数据库(pubmed)

(5)Details(详细检索式) ) (详细检索式) 主要用于查看PubMed的检索策略,即 的检索策略, 主要用于查看 的检索策略 词汇自动转换结果。 词汇自动转换结果。 使用Details键还可对检索策略进行修改: 键还可对检索策略进行修改: 使用 键还可对检索策略进行修改 点击Query Translation框中的检索策略, 框中的检索策略, 点击 框中的检索策略 将其修改后点击Search 将其修改后点击
[Text Word]:在TI、AB、MeSH、PS、SH等 字段检索
(2)著者检索 ) 姓在前用全称,名在后用缩写。 姓在前用全称,名在后用缩写。 比如检索李伟( 比如检索李伟(Li Wei)发表的文献时, )发表的文献时, 检索式应为Li , 检索式应为 W,但此时的检索结果同时包 含Li WH,Li WY等,为进行精确检索,应 , 等 为进行精确检索, 用双引号将检索词括起来, 用双引号将检索词括起来,如"Li W"。如果 。 仅仅采用姓氏检索, 仅仅采用姓氏检索,一定要附加著者字段的 。 标识符[au],比如:Li[au]。 标识符 ,比如:
(2)Preview/Index(预检索和索引浏览) ) (预检索和索引浏览)
– 在显示文献题录前,显示检索策略和检索 在显示文献题录前, 结果的数量。 结果的数量。 – 可修改检索策略:提供二次检索检索功能。 可修改检索策略:提供二次检索检索功能。 – 从索引词表中浏览并选择词条,完善检索 从索引词表中浏览并选择词条, 策略: 策略:在“Preview/Index ”页面下方的提 页面下方的提 问框内输入检索词,点击 问框内输入检索词,点击Index,系统显示 , 相应的索引词表, 相应的索引词表,然后可进一步选词进行 二次检索。 二次检索。

数据库系统概念(英文精编版.第六版)ch7 E-R Model

数据库系统概念(英文精编版.第六版)ch7 E-R Model

Example: instructor = (ID, name, street, city, salary ) course= (course_id, title, credits)
Domain – the set of permitted values for each attribute Attribute types:
Mapping Cardinality(映射基数)
Express the number of entities to which another entity can
be associated via a relationship set.
Most useful in describing binary relationship sets. For a binary relationship set R between entity sets A and
Entity-Relationship Model
The E-R model is a widely used data model for database
design.
It provides a convenient graphical representation to view
data, relationships and constraints.


Simple and composite attributes.
Single-valued and multi-valued attributes

Example: multivalued attribute: phone_numbers Can be computed from other attributes Example: age, given date_of_birth

数据库系统概念(database system concepts)英文第六版 PPT 第15章

数据库系统概念(database system concepts)英文第六版 PPT 第15章

requesting and releasing locks. Locking protocols restrict the set of possible schedules.
Database System Concepts - 6th Edition
15.5
©Silberschatz, Korth and Sudarshan
The Two-Phase Locking Protocol (Cont.)
There can be conflict serializable schedules that cannot be obtained if
two-phase locking is used.
However, in the absence of extra information (e.g., ordering of access
to data), two-phase locking is needed for conflict serializability in the following sense: Given a transaction Ti that does not follow two-phase locking, we can find a transaction Tj that uses two-phase locking, and a schedule for Ti and Tj that is not conflict serializable.
©Silberschatz, Korth and Sudarshan
Lock-Based Protocols (Cont.)
Lock-compatibility matrix

数据库ER图 英文

数据库ER图 英文

name ssn Employees lot Works_In4 did
dname budget Departments
from
Duration
to
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke
4
Entity vs. Relationship
2

Constraints in the ER Model:

Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke
Entity vs. Attribute

Should address be an attribute of Employees or an entity (connected to Employees by a relationship)?
8
The Unified Modeling Language
UML has the attractive feature that its constructs can be drawn as diagrams. It encompasses a broader spectrum of the software design process than the ER model.
since did Manages2
ห้องสมุดไป่ตู้
dname budget Departments
ISA
Managers
dbudget
This fixes the problem!
5
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke

数据库系统概念(database system concepts)英文第六版 PPT 第六章

数据库系统概念(database system concepts)英文第六版 PPT 第六章

Database System Concepts - 6th Edition
6.8
©Silberschatz, Korth and Sudarshan
Union Operation
Notation: r s Defined as:
r s = {t | t r or t s}
©Silberschatz, Korth and Sudarshan
Cartesian-Product Operation – Example
Relations r, s:
r x s:
Database System Concepts - 6th Edition
6.12
©Silberschatz, Korth and Sudarshan
Project Operation
Notation:

A , A , , A 1 2 k
(r )
where A1, A2 are attribute names and r is a relation name.
The result is defined as the relation of k columns obtained by erasing
For r s to be valid.
1. r, s must have the same arity (same number of attributes) 2. The attribute domains must be compatible (example: 2nd column of r deals with the same type of values as does the 2nd column of s)

英文数据库

英文数据库

3.2.5 个性化功能
3.保存检索结果
在题录显示界面,标记要保存的记录,点击图标 【Add to list】,此时选中的记录将暂存在服务器上, 然后点击导航条上的按钮【My Profile】,进入检 索结果保存界面,点击按钮【Save】,将所选的记 录保存在服务器上。
4.文章被引用最新信息通报
3.1.1 概述 涉及核技术、生物工程、交通运输、化学和工艺工 程、照明和光学技术、农业工程和食品技术、计算 机和数据处理、应用物理、电子和通信、控制工程、 土木工程、机械工程、材料工程、石油、宇航、汽 车工程以及这些领域的子学科和其他主要工程领域。 其中,化工和工艺的期刊文献最多,约占15%;计 算机和数据处理占12%;应用物理占11%;电子 和通信占12%;另外还有土木工程和机械工程各占 6%。 大约22%的数据是有主题词和摘要的会议论文, 90%的文献是英文文献。
3.1.1 概述 Ei公司从1992年开始收录中国期刊,并于1998年 在清华大学图书馆建立了Ei中国镜像站,2002年又 开通了Ei China 网站/。 访问网址: 1./ (清华大学图书馆镜像) 2./
3.1.4 个性化功能
1.电子邮件通报服务
当数据更新时,系统将按用户设定的检索需求自动 检索,并将检索到的最新数据(包括文献题名、作 者、文摘等),发送至用户的电子邮箱中。 如保存作者检索,并设定Alert服务,可获得该作者 的文章被Ei Compendex收录的最新信息通报;保 存刊名检索,并设定Alert服务,可获得该刊的最新 期目次页。
输入检索式
选择检索方式
图3-1 Ei Compendex简单检索界面
3.1.2 检索方式
2.快速检索(Quick Search)

数据库系统概念(英文精编版.第六版)

数据库系统概念(英文精编版.第六版)

Attributes
Attribute Domain

The set of allowed values for each attribute is called the domain of the attribute
The special value null is a member of every domain
Instructor_schema = (ID, name, dept_name, salary)
r(R) is a relation on the relation schema R
We use lowercase names for relations.
Example: instructor (Instructor _schema)
2.5 Relational Query Languages
2.6 Relational Operations
Chapter 2: Relational Model
教学目的:

熟悉关系数据模型
教学重点:

简单属性、多值属性、复合属性
关系、关系模式、码等概念 关系模式图 关系代数的操作
?简单属性多值属性复合属性?关系关系模式码等概念?关系模式图?关系代数的操作?教学难点
Chapter 2: Relational Model
2.1 Structure of Relational Databases 2.2 Database Schema 2.3 Keys 2.4 Schema Diagrams
referenced relation
Exercise: 找出左图里面
存在的其他外码、参照关 系和被参照关系

数据库原理与应用的英文

数据库原理与应用的英文

Database Principles and Applications IntroductionThe purpose of this document is to provide an overview of database principles and their applications. The document will discuss the fundamental concepts of databases, including data models, relational databases, and various database management systems. It will also explore the practical applications of databases in different industries and highlight their significance in modern data-driven environments.Table of Contents1.Data Models2.Relational Databases3.Database Management Systems4.Database Applications5.Conclusion1. Data ModelsData models serve as the foundation for organizing and representing data in a structured manner. They define the structure, relationships, and constraints of the data. There are several types of data models, including:•Hierarchical Model: Represents data in a tree-like structure with parent-child relationships.•Network Model: Represents data using a graph structure, allowing more complex relationships.•Relational Model: Represents data as tables or relations, with rows and columns.•Object-Oriented Model: Represents data as objects, with attributes and methods.•Entity-Relationship Model: Represents data using entities, attributes, and relationships.2. Relational DatabasesRelational databases are based on the relational model, which organizes data into tables, each with its own columns and rows. The relationships between tables are defined using primary and foreign keys. Key concepts in relational databases include:•Tables: Organized collections of data, with each column representinga specific attribute and each row representing a record.•Primary Key: A unique identifier for each record in a table.•Foreign Key: A field in one table that refers to the primary key in another table, establishing a relationship between the two.•Normalization: The process of organizing data to eliminate redundancy and improve data integrity.•SQL: Structured Query Language used for managing and querying relational databases.3. Database Management SystemsA Database Management System (DBMS) is software that allows users to create, manage, and manipulate databases. It provides an interface to interact with the underlying database and includes features such as:•Data Definition Language (DDL): Allows users to create, modify, and delete database structures, tables, and constraints.•Data Manipulation Language (DML): Enables users to insert, update, delete, and retrieve data from a database.•Transaction Management: Ensures the integrity and consistency of database operations.•Security: Provides mechanisms for authentication, authorization, and access control.•Query Optimization: Automatically optimizes queries for better performance.Some popular DBMSs include Oracle, MySQL, Microsoft SQL Server, and PostgreSQL.4. Database ApplicationsDatabases have various applications across industries, playing a crucial role in managing and analyzing large amounts of data. Here are a few examples of database applications:•E-commerce: Databases are used to store product information, customer data, and manage orders.•Healthcare: Databases store patient records, medical history, and facilitate efficient healthcare management.•Finance: Databases are used for storing financial transactions, managing accounts, and processing payments.•Education: Databases manage student records, course information, and enable online learning platforms.•Logistics: Databases help in tracking inventory, managing supply chains, and optimizing logistics operations.The applications of databases are diverse and extend to almost every industry that deals with data management and analysis.ConclusionDatabase principles and applications are essential in modern data-driven environments. Understanding data models, relational databases, and database management systems is crucial for effective data organization and retrieval. The practical applications of databases span across industries and demonstrate their significance in today’s digital world. By leveraging databases, organizations can efficiently manage and analyze vast amounts of data, enabling informed decision-making and improving overall efficiency.。

课件精选全文

课件精选全文

Visual FoxPro 6.0 第二章
第一节 VFP6.0数据
数据类型: 常量: 变量: 运算符: 函数: 表达式:
返回目录
Visual FoxPro 6.0 第二章
第一节 VFP6.0数据
返回目录
数据类型: 常量: 变量: 运算符: 函数: 表达式:
数据类型 是对数据的取
第一节 数据库简介
返回目录
信息:
数据库管理系统 是管理
数据: 数据处理: 数据库:
数据库的软件系统。它的主要 功能是管理和维护数据。
数据库管理系统对数据的完整 性、唯一性和安全性都提供一
数据库管理系统:
套有效的管理手段,使数据具 有充分的共享性和独立性。
数据库系统:
Visual FoxPro 6.0 第一章
逻辑型 L
真或假(.t.或.f.)
1个字节
货币型 Y 整型 I
货币数量 整数值
浮点型 F
以科学计数法表示
双精度型
双精度浮点数
备注型 M
引用大数据块
通用型 G
OLE对象的引用
字符型(二进制)任意不经受代码页修改的字符数据
备注型(二进制)任意不经受代码页修改的备注字段数据
8个字节 4个字节 在内存中8个字节,在表中占1至20 个字符 8个字节 4个字节 4个字节 最多254个字节 4个字节
关数据的集合。
数据库中的数据是按一定的数据 模型组织、描述和存储数据的,
数据库:
具有较小的冗余度和较高的独立 性,并可为各种用户共享。
数据库管理系统:数据库可分为三类:层次型(一对
数据库系统:
多)、网状型(多对多)和关系型(一 对一、一对多和多对多)

EMERALD数据库

EMERALD数据库

在“Content Indicator”后的下拉列表中选择希望查读性四个方面进行等级评 定 );
在“Article Type”后的下拉列表中选择要检索的文章类 型; 在出版时间“Published between”中,可以通过选择下 拉列表中的任意二个年份作为起始年和终止年;
数据库调用
用户只需点击图书馆网页上,上海交大镜像站的 链接即可登录,或者也可以输入网址 http://210.68.52.202/emerald/basicsearch.nsp 进入。
数据库主页
基 本 检 索
高 级 检 索
作 者 浏 览
刊 名 浏 览
检索方法
基本检索
高级检索 作者浏览 期刊浏览
用户在页面上将看到一个检索式收藏列表,列出了所有 全选/取消全选框。
已收藏的检索式。每项检索式前有一个选择框,并设有
系统允许用户组合已收藏的检索式开始新的检索,检索 中进行选择。
式之间的关系可为“and”、“or”,用户可在下拉列表框
检索式收藏(Saved Search)
存储检索 式
检索式 逻辑关 系

“*”: 无 限 截 词 , 如 inter* 表 示 inter, internet international...

“#”:停止符号,如program# 表示program,不代表 programmed, programming, programmer...
图书馆电子资源培训课件
EMERALD数据库
数据库简介
Emerald是世界上出版管理学、图书馆学和信息 服务领域期刊最多的出版商,同时还出版工程学 科技应用方面高水准的专业刊物。 EMERALD出版了80余种管理学期刊和20多种图 书馆信息学期刊. EMERALD还出版25种侧重工 程学科的专业期刊。 使用者可以通过校园网内的任何一台计算机访问

常用英文数据库

常用英文数据库
第二章 常用英文数据库
第一节 SCI数据库
2
基本概念:
引文(Citation)和来源文献(Source Item): 一篇文章的参考文献称为引文,该篇文章称为 来源文献。刊载来源文献的期刊或专著丛书等 称为来源出版物(Source Publications)。
被引作者或引文作者(Cited Author):即参考
5
一、数据库简介 美国《科学引文索引》(Science Citation Index,
简称SCI)是一部大型的综合的索引检索刊物,它 报道的学科领域自然科学、工程技术、生物医学、 社会科学、艺术与人文领域。四十多年严格一致的 选刊标准,精选9,000多种核心学术期刊。数据回 溯至1900年,追溯100多年的科技文献及其影响。 SCI是通过著者途径查找文献的检索工具,它的最 大特点是揭示了著者之间、文献之间的引用和被引 用关系。这种关系可衡量一篇文献的学术价值,即 一篇文献的被引用率越高,其学术价值就越大,同 时也可以分析出学科之间的交叉渗透关系和发展动 向,进行人才预测等。Web of Science包括5个引 文数据库,2个化学数据库。
7
• 2个化学数据库为: • Current Chemical Reaction(CCR, 1985至
今)包括 Institut National de la Propriete Industrielle 化学结构数据,可回溯至 1840 年) • Index Chemicus (IC, 1996至今)
13
(2) 被引参考文献检索(CITED REFERENCE SEARCH)
被引参考文献索引是将文章中的参考文献作 为检索词,它揭示的是一种作者自己建立起 来的文献之间的关系链接。引文检索具有独 一无二的功能,即从旧的、已知的信息中发 现新的、未知的信息。该方式通过被引作者 、被引文献所在期刊的刊名、被引文献发表 的年份三种途径检索论文被引用情况。

数据库设计 英文

数据库设计 英文
8
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke
Key Constraints
ssn
since name lot did dname budget


Consider Works_In: An employee can work in many departments; a dept can have many employees. In contrast, each dept has at most one manager, according to the key constraint on Manages.
ssn
lot
Employees supervisor subordinate
Reports_To
Relationship: Association among two or more entities. E.g., Barbara works in the CS department. Relationship Set: Collection of similar relationships.
(in DB) using a set of attributes.


Entity Set: A collection of similar entities. E.g., all employees.
All entities in an entity set have the same set of attributes. (Until we consider ISA hierarchies, anyway!) Each entity set has a key (primary key - SSN). Each attribute has a domain.

数据库系统概念(database system concepts)英文第六版 PPT 第五章

数据库系统概念(database system concepts)英文第六版 PPT 第五章

"select * from instructor where name = ‟" + name + "‟" Suppose the user, instead of entering a name, enters: X‟ or ‟Y‟ = ‟Y then the resulting statement becomes: "select * from instructor where name = ‟" + "X‟ or ‟Y‟ = ‟Y" + "‟" which is: select * from instructor where name = ‟X‟ or ‟Y‟ = ‟Y‟ User could have even used X‟; update instructor set salary = salary + 10000; - Prepared statement internally uses: "select * from instructor where name = ‟X\‟ or \‟Y\‟ = \‟Y‟ Always use prepared statements, with user inputs as parameters
How is this useful?
Database System Concepts - 6th Edition
5.10
©Silberschatz, Korth and Sudarshan
Metadata (Cont)
Database metadata DatabaseMetaData dbmd = conn.getMetaData();
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Using Studio and Movie, add to the relation Studio all movie studios that are mentioned in the relation Movie, but don’t appear in Studio.
7
Solution
INSERT INTO Studio(name) (SELECT DISTINCT studioName FROM Movie WHERE studioName NOT IN
movieYear = 1942 AND starName = ‘Sydney Greenstreet’;
10
Example: Delete all Tuples
Make the relation Likes empty: DELETE FROM Likes;
Note no WHERE clause needed.
Another way to add Sydney Greenstreet to the list of stars of The Maltese Falcon.
INSERT INTO StarsIn(movieTitle, movieYear, starName) VALUES(’The Maltese Falcon’, 1942, ’Sydney GreenStreet’);

Updates
To change certain attributes in certain tuples of a relation:
UPDATE <relation> SET <list of attribute assignments> WHERE <condition on tuples>;
(SELECT name FROM Studio);
8
Deletion
To delete tuples satisfying a condition from some relation:
DELETE FROM <relation> WHERE <condition>;
9
Example: Deletion
2. We don’t have values for all attributes, and we want the system to fill in missing components with NULL or a default value.
4
Example: Specifying Attributes
3
Specifying Attributes in INSERT
We may add to the relation name a list of attributes. Two reasons to do so:
1. We forget the standard order of attributes for the relation.
Delete from relation StarsIn the fact that Sydney GreenStreet was a star in The Maltese Falcon:
DELETE FROM StarsIn WHERE movieTitle = ‘The Maltese Falcon’ AND
More SQL
Database Modification Defining a Database Schema Views
1
Database Modifications
A modification command does not return a result (as a query does), but changes the database in some way. Three kinds of modifications:
5
Inserting Many Tuples
We may insert the entire result of a query into a relation, using the form:
INSERT INTO <relation> ( <subquery> );
6
Example: Insert a Subquery
Example: add Sydney Greenstreet to the list of stars of The Maltese Falcon.
INSERT INTO StarsIn VALUES(‘The Maltese Falcon’, 1942, ’Sydney GreenStreet’);
13
Example: Update
Modify the relation MovieExec by prepending the title Pres. In front of every movie executives who is the president of a studio:
UPDATE MovieExec SET name = ‘Pres. ’ || name WHERE cert# IN (SELECT presC# FROM Studio);
11
Example: Delete Many Tuples
Delete from MovieExec all movie executives whose net worth is low-less than ten million dollars.
DELETE FROM MovieExec WHERE netWorth < 10000000;
1. Insert a tuple or tuples. 2. Delete a tuple or tuples. 3. Update the value(s) of an existing tuple or tuples.
2
Insertion
To insert a single tuple: INSERT INTO <relation> VALUES ( <list of values> );
相关文档
最新文档