Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/06/2011, 13:29
Avatar de galletica12
galletica12
 
Fecha de Ingreso: mayo-2011
Ubicación: Tekax, Yucatán
Mensajes: 213
Antigüedad: 12 años, 11 meses
Puntos: 8
Respuesta: Insert ó update: Si existe un registro o no existe

crea un procedimiento almacenado

CREATE PROCEDURE pa_"Nombre_Procedimiento"
go
@Existe

select idProducto from producto
where idProducto = @Existe.

end