Mysql database introduction and mysql display command _ MySQL

Source: Internet
Author: User
This article mainly introduces the Mysql database introduction and related information about mysql display commands. For more information about mysql databases, see the following section. The details are as follows:

MySQL

Database:

Oracle, DB2, SQL Server, MySQL, access, mangodb, bigtable

Relational Database Service

Large

Oracle and DB2

Medium and Small

SQL Server, MySQL

Small

Access

Non-relational databases

Mangodb, bigtable

What is a relational database?

A relational database is a database that uses a "relational model" to organize data.

What is non-relational database?

Databases that do not use "relational models" to organize data are non-relational databases.

Link model

A relational model is a two-dimensional table model. a relational database uses multiple two-dimensional tables to organize data.

Link:

A relational table is a two-dimensional table. each two-dimensional table is in a database, that is, a data table.

Tuples: it can be understood as a row in the orders table, corresponding to the records in the data table in the database.

Attribute: it can be understood as a column in the tables table, corresponding to the fields in the data table in the database.

Field: the value range of the attribute, that is, the value restriction (field type) of fields in the data table in the database ).

Keyword: is a set of attributes that uniquely identify a single tuples, corresponding to the primary key field in the database data table.

Several concepts in the database:

Data: storage objects of databases

Database: a set of databases used in computers for long-term data storage, sharing, and unified management.

Data table: table

Record

Field: field (column)

DBMS (DataBase Management System): a DataBase Management System is a large software used to manage databases. it is mainly used to create, delete, and maintain databases.

MySQL object structure

The MySQL display command is described as follows:

Although various graphical management tools facilitate MySQL management, you may need to manually enter commands for ease of use. the following commands are excerpted for your own use.

1. display the database list.

Show databases;

2. display the data tables in the database:

Use mysql;
Show tables;

3. display the data table structure:

Describe table name;

4. database creation:

Create database name;

5. create a table:

Use database name;

Create table name (field setting list );

6. delete databases and tables:

Drop database name;
Drop table name;

7. clear records in the table:

Delete from table name;

8. display records in the table:

Select * from table name

The above is the Mysql database introduction and the mysql command-MySQL display content. For more information, please follow the PHP Chinese network (www.php1.cn )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.