在MSSQL里怎么取'2007-01-15 06:00:00'其中的'06:00:00'?
在MSSQL里怎么取 '2007-01-15   06:00:00 '其中的 '06:00:00 '?   
 我是想判断一个时间字段是否在一个范围内.(比如: '06:00:00 '- '12:00:00 ')   
------解决方案--------------------declare @date datetime 
 set @date= '2007-01-15 06:00:00 '   
 select convert(char(8),@date,108)     
 select convert(char(8),getdate(),108)   
------解决方案--------------------declare @t datetime  
 set @t= '2007-01-15 06:00:00 ' 
 select CONVERT(varchar(12) , @t, 108 )   
 --   
 06:00:00