mysql

show databases
show tables from 表名
use 数据库名
select database()
create database 数据库名
create table 表名 (
字段名 类型,
字段名 类型,
字段名 类型;
);
desc 表名

insert into 表名 (字段名) values ();

update 表名 set 字段名 = 值 where 字段名 = 值

delete from 表名 where 字段名 = 值

select version()

不区分大小写,建议关键字大写
每天命令;号结尾
注释 单行注释# -- ....
/* dsf */

DQL DML DDL TCL

posted @ 2019-11-21 21:04  vipzk  阅读(154)  评论(0)    收藏  举报