当前位置:网站首页>数据库sql语言实战
数据库sql语言实战
2022-07-26 05:52:00 【江中洲】
数据库实战复习
having 与group by
where 和having之后都是筛选条件,但是有区别的:
1.where在group by前, having在group by 之后
2.聚合函数(avg、sum、max、min、count),不能作为条件放在where之后,但可以放在having之后
SQL FORMAT() 函数


select name, url, DATE_FORMAT(Now(),'%y-%m-%d') as date
FROM Wwbsites
SQL SELECT TOP, LIMIT, ROWNUM 子句限定返回记录数量

--前5行
select top 5 * from table
--后5行
select top 5 * from table order by id desc --desc 表示降序排列 asc 表示升序
边栏推荐
- [论文笔记] 面向网络语音隐写的抗分组丢失联合编码
- Solve vagrant's error b:48:in `join ': incompatible character encodings: GBK and UTF-8 (encoding:: Compatib
- ES Cluster in Red status: what about write & delete operations?
- Kingbasees SQL language reference manual of Jincang database (9. Common DDL clauses)
- FTP experiment and overview
- 【STM32系列汇总】博主的STM32实战快速进阶之路(持续更新)
- 1.12 basis of Web Development
- leetcode-Array
- Unity2D 动画器无法 创建过渡
- 二叉树的性质 ~
猜你喜欢

金仓数据库 KingbaseES SQL 语言参考手册 (7. 条件表达式)

Efficient, reliable and safe open source solution for serial communication

嵌入式通用学习路线整理

调试利器!一款轻量级日志库 log.c

Why can't lpddr completely replace DDR?

Full binary tree / true binary tree / complete binary tree~
![ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘requirments.txt’](/img/15/25ff1e544565e18319ecca85e614a2.png)
ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘requirments.txt’

Ros2 preliminary: basic communication with topic
![[STM32 series summary] blogger's way to quickly advance STM32 in actual combat (continuous update)](/img/20/bf7d2653aafd35e6588f819d110453.png)
[STM32 series summary] blogger's way to quickly advance STM32 in actual combat (continuous update)

Application of canoe XML in test modules
随机推荐
对接微信支付(二)统一下单API
二叉树的性质 ~
嵌入式通用学习路线整理
Jincang database kingbasees SQL language reference manual (5. Operators)
FTP experiment and overview
Another open source artifact, worth collecting and learning!
Why can't lpddr completely replace DDR?
Debugging sharp weapon! A lightweight log library log.c
金仓数据库 KingbaseES SQL 语言参考手册 (9. 常见DDL子句)
Jupiter notebook shortcut key
【STM32系列汇总】博主的STM32实战快速进阶之路(持续更新)
日志收集分析平台搭建-1-环境准备
[STM32 series summary] blogger's way to quickly advance STM32 in actual combat (continuous update)
H. Take the Elevator 贪心
Rocbossphp free open source light community system
Introduction to Chinese text error correction task
【(SV && UVM) 笔试面试遇到的知识点】~ phase机制
Learn about spark project on nebulagraph
Binary sort tree (BST)~
How students apply for free idea