我有一个用于更新表的 SQL 存储过程。但是当通过 C# 执行查询时,xslt 从表中删除的列之一。
我的存储过程是
ALTER PROCEDURE [dbo].[kt_editingnotes]
(@NOTE NVARCHAR (512),
@ITEMNUMBER NVARCHAR (512),
@ACCOUNT NVARCHAR (512),
@CODE NVARCHAR(512)
)
AS
UPDATE NOTES
SET TXT = @NOTE
WHERE NOTESRECID = (SELECT ISP_EFAVORITLINE.ROWNUMBER
FROM ISP_EFAVORITLINE
WHERE ISP_EFAVORITLINE.ACCOUNT = @ACCOUNT
AND ISP_EFAVORITLINE.ITEMNUMBER = @ITEMNUMBER
AND ISP_EFAVORITLINE.CODE = @CODE)
return
我这样称呼它:
ExecStoredProcedure('kt_editingnotes', concat('@ITEMNUMBER:', $ITEMNUMBER,', @ACCOUNT:', $ACCOUNT,', @CODE:', $CODE))
问题是什么?任何人都可以帮忙吗?