我不想用case when 因为现在我写的sql已经很长了。。。
HOUR(time) 这样就能取到了
select SUBSTR(add_time FROM 12 FOR 2) hour from table