当前位置:网站首页>时间差计算
时间差计算
2022-07-17 05:09:00 【倫之】
SELECT
TIMESTAMPDIFF(
HOUR,
psi.report_date,
psi.handle_date
) AS time
FROM
table_name psi
WHERE
psi.status = '3'计算report_date、handle_date这两个字段之间相差多少个小时。
复习:
SELECT
MAX(student_result) AS 最高分,
MIN(student_result) AS 最低分,
CAST(AVG(student_result) AS DECIMAL(10,2)) AS 平均分
FROM students
WHERE sex= '男'
边栏推荐
猜你喜欢
随机推荐
【全网首发】主线程异常会导致 JVM 退出?
SQL injection
Mapbox loads local offline terrain
Easypoi之excel模板导出
JS native object plus attributes
Data Lakehouse的未来-开放
在 CDP中使用Iceberg 为数据湖仓增压
Single arm routing configuration
Use of log4j
Excel imports long data and changes to 000 at the end
H5 page uses JS to generate QR code
面试官:大量请求 Redis 不存在的数据,从而影响数据库,该如何解决?
用Flink SQL流化市场数据2:盘中风险价值
MySQL--存储和游标
Opendds QoS and custom QoS (timing, timingqospolicy)
Three methods for cesium to obtain the longitude and latitude at the mouse click
C语言的宏定义
C语言的指针函数
Cesium bind mouse events and remove mouse events
使用Flink SQL传输市场数据1:传输VWAP








