Home > Database > Mysql Tutorial > What do the fields in mysql mean?

What do the fields in mysql mean?

青灯夜游
Release: 2020-09-30 17:07:49
Original
10732 people have browsed it

A field in the database refers to a column of the table. Each row in the data table is a "record", and each record contains all the information in this row; fields are smaller units than records, and a collection of fields constitutes a record. Each field describes a certain feature of the document, that is, data item, and has a unique field identifier recognized by computers.

What do the fields in mysql mean?

We call each row in the table a "record", and each record contains all the information in this row, just like a certain record in the address book database. All personal information, but recorded in the database, does not have a special record name. The row number where it is located is often used to indicate which record it is. Fields are smaller units than records. A collection of fields forms a record. Each field describes a certain feature of the document, that is, a data item, and has a unique field identifier for computer recognition.

Field

(field)

A member that represents a variable associated with an object or class.

In the database, most of the time, the "columns" of the table are called "fields", and each field contains information about a certain topic. Just like in the "Address Book" database, "Name" and "Contact Number" are attributes common to all rows in the table, so these columns are called the "Name" field and "Contact Number" field.

But sometimes, the fields are not columns in the table. For example, as is used to calculate the contents of the column and "store" it in another field. For example: There is only column "ID" in a table "T", and the content is "int" value "1". Using "select id, id * 5 as abc from T", the result is

Recommended tutorial: mysql video tutorial

The above is the detailed content of What do the fields in mysql mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template