[英]How i can solve this problem in the Stored Procedure (sql server) c#?
I am in the project, consist in the abm, so i have a problem with the consult update in the stored procedure 我在项目中,在abm中,所以我在存储过程中的咨询更新有问题
i cant save the stored procedure, but i dont have problems in the views and clases base 我无法保存该存储过程,但是在视图和分类库中没有问题
CREATE PROCEDURE spModificarDestino
/*
(
@parameter1 int = 5,
@parameter2 datatype OUTPUT
)
*/
@id int
AS
/* SET NOCOUNT ON */
UPDATE Destino
SET DES_Descripcion WHERE DES_Codigo = @id;
give me a next error when i click in save. 当我单击保存时,给我下一个错误。 'Incorrect syntax near the keyword WHERE'
“关键字WHERE附近的语法不正确”
Syntax of the update command is update命令的语法是
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
So your command should be like this... 所以你的命令应该是这样的...
UPDATE Destino
SET DES_Descripcion = 'Val' WHERE DES_Codigo = @id;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.