unity3d--高级查询
来源:互联网 发布:aoi编程手册 编辑:程序博客网 时间:2024/05/17 09:12
1、--内连接查询(跟表的位置无关)
select u.name,s.grade from score as s inner join users as u on s.uid=u.id
select u.name,s.grade from users as u inner join score as s on s.uid=u.id
2、--左外连接查询(跟表的位置有关)
select u.name,s.grade from score as s left join users as u on s.uid=u.id
select u.name,s.grade from users as u left join score as s on s.uid=u.id
3、--右外连接查询(跟表的位置有关)
select u.name,s.grade from score as s right join users as u on s.uid=u.id
select u.name,s.grade from users as u right join score as s on s.uid=u.id
4、--like模糊查询
select id,name from users where name like '%a%'
5、--between...and
select id,name from users where id between 1 and 2
select id,name from users where id >=1 and id<=2
6、--in
select id,name from users where id in(1,2,3)
7、--sum avg
select sum(id) as 总和 from users
select avg(id) as 平均 from users
8、--max min
select max(id) as 最大,min(id) as 最小 from users
9、--count
select count(*) as 总人数 from users
select count(password) as 总人数 from users
10、--分组
select id,avg(id) as 平均 from users group by id
select id,avg(id) as 平均 from users group by id,name
更多精彩请关注:http://www.gopedu.com/
狗刨学习网值得你拥有!!!!!!嘎嘎嘎嘎
0 0
- unity3D—高级查询
- Unity3D之高级查询
- unity3d---SQL高级查询
- unity3d--高级查询
- 学习Unity3D之高级查询。
- Unity3D学习之(高级查询和聚合函数)
- 高级查询
- 高级查询
- 高级查询
- 高级查询
- 高级查询
- 高级查询
- 高级查询
- 高级查询
- 高级查询
- 高级 Unity3d 手机脚本
- Unity3D摄像机高级控制
- unity3d uGUI 高级封装
- 预计无人机市场规模2018年将增至10亿美元
- sharesdk,微信不能分享
- Git中git commit -m ""与git commit -a -m "" 的区别
- iOS代码修改音量
- mysql简单教程
- unity3d--高级查询
- cxf 3.0.3 与spring 3结合初探
- onSaveInstanceState和onRestoreInstanceState()
- 云技术概念
- 高级查询和连接数据库
- 白话 StackCount StackSize CurrentLocation
- android sdk manager 无法更新解决方法
- GNU宣言
- [点点搬家]HTTP TCP/IP协议小研究