S
sunke520
Unregistered / Unconfirmed
GUEST, unregistred user!
sql server里面有张表astation date zhi52112 1999-1-1 8:00:00 2052112 1999-1-1 9:00:00 3252112 1999-1-1 10:00:00 1052112 1999-1-1 11:00:00 1152112 1999-1-1 12:00:00 2352112 1999-1-1 13:00:00 3352112 1999-1-1 14:00:00 1252112 1999-1-1 15:00:00 5652112 1999-1-1 16:00:00 4752112 1999-1-1 17:00:00 1352112 1999-1-1 18:00:00 2352112 1999-1-1 19:00:00 3452112 1999-1-1 20:00:00 5252112 1999-1-1 21:00:00 4652112 1999-1-1 22:00:00 4552112 1999-1-1 23:00:00 4652112 1999-1-1 24:00:00 6352112 1999-1-2 8:00:00 2052112 1999-1-2 9:00:00 3252112 1999-1-2 10:00:00 1052112 1999-1-2 11:00:00 1152112 1999-1-2 12:00:00 2352112 1999-1-2 13:00:00 3352112 1999-1-2 14:00:00 1252112 1999-1-2 15:00:00 5652112 1999-1-2 16:00:00 4752112 1999-1-2 17:00:00 1352112 1999-1-2 18:00:00 2352112 1999-1-2 19:00:00 3452112 1999-1-2 20:00:00 5252112 1999-1-2 21:00:00 4652112 1999-1-2 22:00:00 4552112 1999-1-2 23:00:00 4652112 1999-1-2 24:00:00 6352112 1999-1-3 8:00:00 2052112 1999-1-3 9:00:00 3252112 1999-1-3 10:00:00 1052112 1999-1-3 11:00:00 1152112 1999-1-3 12:00:00 2352112 1999-1-3 13:00:00 3352112 1999-1-3 14:00:00 1252112 1999-1-3 15:00:00 5652112 1999-1-3 16:00:00 4752112 1999-1-3 17:00:00 1352112 1999-1-3 18:00:00 2352112 1999-1-3 19:00:00 3452112 1999-1-3 20:00:00 5252112 1999-1-3 21:00:00 4652112 1999-1-3 22:00:00 4552112 1999-1-3 23:00:00 4652112 1999-1-3 24:00:00 63现要查询52112站1999-1-1到1999-1-3 8点到12点的值,求大侠帮忙写这sql语句。。。急。在线等。。查询的预期结果如下:52112 1999-1-1 8:00:00 2052112 1999-1-1 9:00:00 3252112 1999-1-1 10:00:00 1052112 1999-1-1 11:00:00 1152112 1999-1-1 12:00:00 2352112 1999-1-2 8:00:00 2052112 1999-1-2 9:00:00 3252112 1999-1-2 10:00:00 1052112 1999-1-2 11:00:00 1152112 1999-1-2 12:00:00 2352112 1999-1-3 8:00:00 2052112 1999-1-3 9:00:00 3252112 1999-1-3 10:00:00 1052112 1999-1-3 11:00:00 1152112 1999-1-3 12:00:00 23