查询一天的小时数

select number from master..spt_values where type='P' and number<24

原文地址:https://www.cnblogs.com/byfcumt/p/7287015.html