Home  >  Article  >  Database  >  sql语句1数据库创建、查看

sql语句1数据库创建、查看

WBOY
WBOYOriginal
2016-06-07 15:36:011505browse

SQL语句从功能上可以区分如下三类: DML(Data Manipulation Language)数据操作语言 |-用于检索和修改数据 DDL(DataDefinition Language)数据定义语言 |-用于创建、修改、删除数据库对象(表,关系、索引、视图) DLC(Data Control Language)数据控制语

SQL语句从功能上可以区分如下三类:

              DML(Data Manipulation Language)数据操作语言

                     |-用于检索和修改数据

              DDL(DataDefinition Language)数据定义语言

                     |-用于创建、修改、删除数据库对象(表,关系、索引、视图)

              DLC(Data Control Language)数据控制语言

                     |-用于定义数据库用户的权限(数据库的管理方面)

数据库创建:

create database db_name

default character set utf-8;

数据库查看:

show databases;

使用数据库:

use db_name;

数据库删除:

drop database if exists db_name;


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn