What Does Tuple (Database) Mean?

Tuple在数据库中指的是表中的一行,即一条记录,包含多个不同属性的信息。在关系型数据库中,列代表属性,行代表记录,每个行都有唯一键。数据以表格形式组织,表中的行反映了现实世界的关系或实体。在数学上,元组是一个有序元素列表,可以有不同数据类型,而在向量中,元素通常具有相同数据类型。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Overview

在大数据领域的各种文献和Paper中,经常会提到 tuple 这个词。通过这篇文章我们来理解下。

Tuple

在关系型数据库中,一个 tuple 就是一条记录(一行)。

数据库中的信息可以被认为是一个电子表格,列(称为字段或属性)代表不同类别的信息,而 tuple (行)代表与一条记录相关的每个字段的所有信息。

What-is-a-tuple-in-database

A tuple is simply a row contained in a table in the tablespace. A table usually contains columns and rows in which rows stand for records while columns stand for attributes. A single row of a table that has a single record for such a relation is known as a tuple. A Tuple is, therefore, a single entry in a table; it is also called a row or record. They usually represent a set of related data, in Math it is simply an ordered list of elements.

It should be noted that the relational model arranges data into at least one table of rows and columns using a unique key. The columns are referred to as attributes while the rows are called tuples or records. Furthermore, each of the rows as contained in a table has its unique key. Also, the rows in a different table can be connected by including a column for the key of the linked row.

Relational Database World

现实中数据库中的表的行代表了一种关系或一个现实世界的实体。

在现实模型中,数据被存储在关系(表)中,以 tuples(行)的形式表示。

The rows in the table from realtional database represent a relationship or a real-world entity.
In the realtional model, data is stored in relations(tables) and is represented in the form of tuples(rows).

Summary

tuple 隐含的意思是 各个元素数据类型可能不同,但是所有元素属于同一个entity,是一种realtion

vector 隐含的是数据类型相同,是不同entity的同一个attribution。

在数学上,tuple 是一个有序的元素列表。

In mathematics, a tuple is an ordered list of elements. Related to this is an n-tuple, which in set theory is a collection (sequence) of “n” elements. Given this, it might be more properly said that tuples are implemented as records even though the terms are commonly used interchangeably.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值