-2
我收到上述錯誤誰能請幫助什麼是代碼中的問題...轉換失敗時轉換爲nvarchar成int
P.YKey BETWEEN YEAR('''+ CONVERT(VARCHAR(50), @BDate, 103) +''')
AND YEAR('''+ CONVERT(VARCHAR(50), @eDate, 103) +''')
AND P.DCreation BETWEEN '''+ CONVERT(VARCHAR(50), @BDate, 103) +'''
AND '''+ CONVERT(VARCHAR(50), @eDate, 103) +''''
DateTime @zhang – Rashi