我們正試圖創建一個存儲過程,但我們遇到了以下錯誤消息:排序規則衝突,同時爲變量賦值
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
在33行出現此錯誤,其內容如下:
SET @MINTIME = (SELECT CONVERT(varchar,DATEADD(MONTH,-1,GETDATE()),112));
有誰知道如何解決這個問題?
顯示我們@mintime聲明。 – RBarryYoung
DECLARE @MINTIME AS VARCHAR(50); – George