show databases;
create database 库名;
show create database 库名;
drop database 库名;
show tables;
create table student(
id int,
name varchar(20),
age int
)
drop table 表名;
INSERT INTO test
.student
(id
, name
, age
) VALUES (2, '天', 13);
UPDATE student set name='小明' where id=1;
delete from 表名 where 条件-物理删除
DELETE from student where id=1;
select * from 表名
select name as 姓名 from student ;
实际数据
select DISTINCT name from student ;
结果去除了重复的name数据:
显示在某一区间的值:80~100 between 80 and 100
多个条件中符合 1 个值: in
select * from test.student where age in (14,15);