i making this sp but when i try to execute it sen this message.
-----------------------------------------
---- Error -------------------------------

Auto Commit: On, SQL Mode: Ansi, Isolation Level: Committed

Syntax error or access violation;-5015 POS(8) Missing keyword:OR.

CREATE DBPROC RealizaCompra (IN idVenta INTEGER, IN idVendedor INTEGER, IN Comentario 
varchar(50) )AS 

VENTA INTEGER; VENDEDOR INTEGER; COMENTARIO VARCHAR(50);

TRY

set Venta = 1;

set Vendedor = 1;

set Comentario = "Venta exitosa";

INSERT INTO Compras (idventa, idvendedor, comentario) VALUES (Venta, Vendedor, 
Comentario);

-----------------------

thank's to everybody





Para cualquier duda o aclaraci�n quedo a sus ordenes.
Omar de J. Vazquez Mayorga
      Productos Mavi

Reply via email to