欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > > 文章正文

MSSQL 时间格式,mssql时间格式

来源: javaer 分享于  点击 14643 次 点评:279

MSSQL 时间格式,mssql时间格式


cast(case when d.op_code like '%上午%' then substring(replace(d.op_code, '上午 ',''),5, len(d.op_code)-5)
 when d.op_code like '%下午%' then substring(replace(d.op_code, substring(d.op_code,len(d.op_code)-10,5), cast(substring(d.op_code, len(d.op_code)-7,2) as int)+12),5, len(d.op_code)-5)
 else substring(d.op_code, 5, len(d.op_code)-4) end as datetime)

相关文章

    暂无相关文章

用户点评