update set 日期=concat(substring(日期,7,4),'-',substring(日期,1,2),'-',substring(日期,4,2),' ',case when right(日期,2)='PM' then convert(int,substring(日期,13,2))+12 else substring(日期,13,2) end,substring(日期,15,3),":00")
chenxf3(提问者) 回复 烟尘update
set date
=concat(substring(date,7,4),\'-\',substring(date,1,2),\'-\',substring(date,4,2),\' \',case when right(date,2)=\'PM\' then convert(int,substring(date,13,2))+12 else substring(date,13,2) end,substring(date,15,3),\":00\")
from testcxf
还有列名date无效,这里是我那个细节错了吗