MySQL Forums
Forum List  »  Spanish

Problemas con Where en Mysql
Posted by: Isanor Lopez
Date: March 26, 2019 12:30AM

Hola, Tengo problemas con el update en Mysql worckbench 8.0.15 debido a que en una base de datos tengo creado un procedimiento almacenado para actualizar el valor especifico de un registro, la instruccion que ejecuta es un update delimitado con un where pero omite el where en cuestion y afecta a todos los registros de la tabla aqui esta el procedimiento almacenado.

CREATE PROCEDURE `actVendedor` (id varchar(15), nombre varchar(15))
BEGIN
update Vendedores set NombreVendedor = nombre
where IDVendedor = id ;
END

call actVendedor ("V-001", "juan");

Options: ReplyQuote


Subject
Views
Written By
Posted
Problemas con Where en Mysql
476
March 26, 2019 12:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.