Introduction to Database

Database
    database (DATABASE, DB ) is a collection of long-term storage in the computer, organized, sharable data.
 Data in the database according to a certain mathematical model of organization, description and storage, has less redundancy, higher data independence and ease of scalability, and can be shared by various users.


Database management system software
    DBMS (Database Management System) is a large-scale software for manipulating and managing a database, used to create, use and maintenance of the database, referred to as the DBMS .
 It unified database management and control, in order to ensure the security and integrity of the database.

  Users, database administrators perform database maintenance by dbms DBMS data by accessing the database.

 It allows multiple applications and users in different ways to different times or at the same time to establish, modify and query a database.
 Most DBMS provides data definition language    DDL (Data Definition Language) and data manipulation language DML (Data Manipulation Language), the structure and mode permissions for user-defined database constraints, to achieve the additional data, delete files.
    Database management system is the core database system is a database management software.
 Database management system is to achieve the abstract sense the user data processing logic, computer software specifically converted into a physical data processing.
 With database management system, users can process data in an abstract sense, without regard to the layout and the physical location of the data on your computer.


    Common database management software: Oracle oracle, IBM's db2, sql server, Access, MySQL (open source, free, cross-platform).


Database system
    database system DBS (Data Base System, referred to as DBS) typically consists of software, databases and data administrators.
     The software includes an operating system, various host languages, utilities, and database management systems.
     Unified database managed by the database management system, data insertion, modification, and retrieval have to be carried out by database management systems.
     Data administrator is responsible for creating, monitoring and maintenance of the entire database, the data can be used by any person is entitled to effective use.

 

SQL specification and
SQL (Structured Query Language Structured Query Language) is a database query language and programming language, used primarily for data management database, such as data access, query data, updating data and the like.
SQL is a database operation command set designed for established and is fully functional database language.
 When using it, just issued a "what" command, "how" the user is not taken into account.
 SQL is powerful, easy to learn, easy to use, has become a basic database operations, and now almost all of the database support SQL.
<1> in a database system, SQL statements, case-insensitive. However, case-sensitive string constants. The proposed order uppercase, lowercase table names library name;
<2> SQL statements can be single or multiple rows written with ";" at the end. Keywords can not span multiple lines or abbreviated.
<3> with spaces and indentation to improve readability of the statement. Clause typically located on a separate line, to facilitate editing, improve readability.

 

SQL language used by the DDL , the DML , DQL and DCL composition
   (1) database definition language (the Data Definition Language, the DDL )
      database definition language for defining the major databases, tables and the like, which comprises a CREATE statement , the ALTER statement and DROP statement .
                 CREATE statement to create a database, data sheets, ALTER statement to change the definition of a table, etc., DROP statement to delete the database, delete the table and so on.
   (2) database manipulation language (the Data Mabipulation Language, DML )
      database manipulation language mainly used for the database to add , modify , delete operations, including the INSERT statement , UPDATE language and DELETE statements .
                 INSERT statement is used to insert data, UPDATE statement to modify data, DELETE statement to delete data.
   (3) database query language (the Data Query Language, DQL )
      database query language is mainly used to query language, refers to the SELECT statement.
                 One or more data SELECT statement to query the database.
   (4) database control language (the Data Control Language, DCL )
      database control language mainly used to control user access rights, including the GRANT statement , REVOKE statement , COMMIT statement and the ROLLBACK statement .
                 GRANT statement is used to increase user permissions, REVOKE statement is used to recover the user's permission, COMMIT statement to commit the transaction, ROLLBACK statement is used to roll back the transaction.

 

Guess you like

Origin www.cnblogs.com/hhs1104/p/11706365.html