sql Canção - Coletahorárioschegadaficheiros +geraçãotarefas
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql Canção - Coletahorárioschegadaficheiros +geraçãotarefas相关的知识,希望对你有一定的参考价值。
select
CONVERT(DATETIME, SWITCHOFFSET(CONVERT(DATETIMEOFFSET, createdate), '-03:00')),
CONVERT(VARCHAR(10),CONVERT(DATETIME, SWITCHOFFSET(CONVERT(DATETIMEOFFSET, createdate), '-03:00')),103),
substring(CONVERT(VARCHAR, CONVERT(DATETIME, SWITCHOFFSET(CONVERT(DATETIMEOFFSET, createdate), '-03:00')), 114),1,5)
from intf.st_in_logs where logmodule='sp_csvGamaInt' and createdate > '2017-05-01 00:00:00' order by 1 asc
select
createdate, CONVERT(DATETIME, SWITCHOFFSET(CONVERT(DATETIMEOFFSET, createdate), '-03:00')),
substring(CONVERT(VARCHAR, CONVERT(DATETIME, SWITCHOFFSET(CONVERT(DATETIMEOFFSET, createdate), '-03:00')), 114),1,5) ,
retailstoreid, name
from tm.task where actionid=14 and retailstoreid='S0059' and name like '%ugue%' and CONVERT(DATETIME, SWITCHOFFSET(CONVERT(DATETIMEOFFSET, createdate), '-03:00')) >= '2017-05-01 00:00:00' order by 1 asc
以上是关于sql Canção - Coletahorárioschegadaficheiros +geraçãotarefas的主要内容,如果未能解决你的问题,请参考以下文章