Database objects are part of a database and are common in the following ways:
3.3.1 Tables (table)
The tables in the database are similar to the tables we use in our daily lives, and are made up of rows (row) and columns (column). The white-white portion of the black background in figure 3-1 is called a row, and the black-and-white part of Figure 3-2 is called a column. Columns are made up of similar information, each column is called a field, and the title of each column is called the field name. A row includes several column information items. A row of data is called one or a record, and it conveys a meaningful combination of information. A database table consists of one or more records, and a table without records is called an empty table. Each table typically has a primary key that uniquely identifies a record, such as the emp_id column in Figure 3-1. The first record in Figure 3-1, the first row of data, is the message: 10010001 of the employee named John, sex male, was born on February 14, 1968, work level of 1, workers
The department number is 1001, the date of employment is August 2, 1996, the monthly salary is 8000 yuan.
3.3.2 Indexes (Index)
Indexes are in the order in which they are set up according to the specified database table columns. It provides a quick way to access the data and supervises the data in the table so that the data in the column to which the index points is not duplicated. As shown in Figure 3-3.