创建库
create database db1
查看库
show database
切换当前库
use db1
删除库
drop database db1
创建表
create table students
清空表
delete from 表名
增
语法:insert into 表名(列1,列2...)values(值,值...)
Eg: insert into students(name,sex,age) values(‘zm’,’male’,18)
删
语法:delete from 表名 [where 列=值]
Eg:delete from students where name=’zm’
改
语法:update 表名 set 列=值 [where 列=值]
Eg:update students set age=19 where name=’zm’
查
语法:select * from 列表 【where 列=值】
Eg:select name from students where age=19
标签:zm,name,students,Eg,mysql,表名,where From: https://www.cnblogs.com/zmm521/p/17490402.html