摘要:
连续三行数据比较 点击查看代码 WITH NumberSequence AS ( SELECT id, num, LAG(num, 1) OVER (ORDER BY id) AS prev_num, LAG(num, 2) OVER (ORDER BY id) AS prev_prev_num F 阅读全文
摘要:
条件判断 点击查看代码 # 使用case when /* select x,y,z, case when x+y>z and x+z>y and y+z>x then 'Yes' else 'No' end as triangle from triangle */ # 使用if select x,y 阅读全文