如何在T-SQL中将字符串转换为日期?
我的测试用例是字符串: '24.04.2012'
我有以下代码,我想从时间类型获得所有分钟.
declare @time time
set @time = '01:30'
declare @minutes int
--select @minutes = convert time to minutes here
select @minutes -- @minutes == 90
Run Code Online (Sandbox Code Playgroud)
请帮忙.