I am in the project, consist in the abm, so i have a problem with the consult update in the stored procedure
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'
Syntax of the update command is
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;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.