Вы находитесь на странице: 1из 1

MySQL Database Introduction

SQL –

Structured Query Language. This is the language used in database programming.

DBMS-
DataBase Management System. A database management system or a set of programs and applications
used to manipulate data in a database.

Relational DBMS
A database management system based on the relational model or concept. It is based on the relations
of columns into rows, records into tables, tables, into database objects, and so on. This is the basis for
most of modern database systems such as MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft
Access

In RDBMS, data is stored in database objects which are called tables. It is basically a collection of related
data entries made of columns (property) and rows (record)

Example of a table:

Members table:

+- - - - - -+- - - - - - - - - - - - - - + - - - - - - - - - - -+ - - - - - - - - +- - - - - - - - - - - - - - -+
| ID | Name | Age | Status | Address |
+- - - - - -+- - - - - - - - - - - - - - + - - - - - - - - - - -+ - - - - - - - - +- - - - - - - - - - - - - - +
| 1001 | John Doe | 19 | active | Quezon City |
+- - - - - -+- - - - - - - - - - - - - - + - - - - - - - - - - -+ - - - - - - - - +- - - - - - - - - - - - - - +
| 1002 | Alex Corrs | 32 | inactive | Makati City |
+- - - - - -+- - - - - - - - - - - - - - + - - - - - - - - - - -+ - - - - - - - - +- - - - - - - - - - - - - - +
| 1003 | Anna Lohan | 22 | active | Pasay City |
+- - - - - -+- - - - - - - - - - - - - - + - - - - - - - - - - -+ - - - - - - - - +- - - - - - - - - - - - - - +

Each column of the table describes the properties of that column. The column name basically tells us
what are expected to be stored on that column. The column of the table also dictates what data type
can be stored in that column as well as other restrictions and unique properties that can be set for the
column.

Each ROW of the table is a particular record related to the table. In our members table, the records for
the Name John Doe are all on the first row. The next record are for the name Alex Corrs, and so on.
However, your table can contain many Instances with the name John or Alex, so for a table to
understand which record you are referring, one column of the table will have unique values all
throughout the table. This is the Index of the table, or the Primary key.

Вам также может понравиться