本文介绍了用日期更新SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们

我对此有疑问.

hi guys

im having issues with this.

ALTER PROCEDURE Usp_ClearDaily

@TreatmentDate datetime=''''

AS

BEGIN
	
SET NOCOUNT ON;

UPDATE		DailyRecord
SET  [Remarks]	=''''
WHERE	TreatmentDate	= @TreatmentDate


END
GO




它不起作用.它不能正确遍历日期




it is not working. it cannot traverse the date properly

推荐答案



AND CONVERT(VARCHAR, [TreatmentDate],101)	= CONVERT(VARCHAR, @TreatmentDate,101)


这篇关于用日期更新SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 22:35