Mysql database introduction and mysql display commands, mysql database

Source: Internet
Author: User
Tags mysql commands mysql index

Mysql database introduction and mysql display commands, mysql database

The following describes the mysql database. 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

Articles you may be interested in:
  • Basic Introduction of MyEclipse connecting to MySQL database through JDBC
  • Brief Introduction to mysql database formatting
  • In-depth analysis of MySQL Database Engine introduction, differences, creation and performance testing
  • Five common MySQL database management tools
  • Introduction to mysql Database Import and Export, functions, and stored procedures
  • Detailed comparison between mongodb and mysql commands
  • How to restore a Mysql database
  • MySQL scheduled execution script (scheduled task) command instance
  • Mysql database commands
  • Mysql Command for restoring data tables
  • How to import SQL files in linux (use command lines to transfer mysql databases)
  • Mysql database optimization and restoration tool mysqlcheck details
  • MySQL database and table commands
  • Mysql database Locking Mechanism
  • Create and Delete tables in MySQL
  • Summary of commands for modifying table structures in MySQL
  • MySQL index Operation Command Summary

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.