只总结了一些常用的,基本的,童鞋们还可以再补充些。。。
- 背景:很多刚入门的小白想学 mysql,不知道这是什么,要学什么,本章将进行简单说明
- 简单介绍:常用的数据库:mysql,Oracle,sqlServer 我们可以把数据库理解为 U 盘,存储东西的,我们想要在里面操作,要用计算机懂得语言去操作,下面是语法具体介绍:
* 号是全部的意思
- 多表查询:
SELECT * FROM table1 LEFT
JOIN table2 ON table1.id=table2.id
JOIN table3 ON table3.id1=table2.id1
and (条件);
- 查:
SELECT 列名 form 表名
- 增:
insert into 表名(列1,列2...) values (值1,值2...)
- 改:
update 表名 set 列=新值 where 列 = 旧值
- 删:
delete from 表名 where 列=值
- 排序:
select 列名 from 表名 order by 列名
- 降序:
asc
升序:desc
- 模糊查询:
like
- 分组查询:
group by
- 筛选:
having
「All right reserved, any unauthorized reproduction or transfer is prohibitted」