UPDATE [dbo].[Order] SET CreateDate = STUFF(CONVERT(VARCHAR(50),CreateDate,126) ,1, 10, '2016-05-26') WHERE CONVERT(DATE,CreateDate)='2016-05-24' db
運行這條語句就會把CreateDate字段中日期更改而時間不變時間