Código SQL:
el error es ERROR at line 7: PL/SQL: ORA-00947: no hay suficientes valores Ver original
CREATE OR REPLACE TRIGGER TR_AGREGAR_CLIENTE BEFORE INSERT ON Venta FOR EACH ROW DECLARE X NUMBER:= 0; BEGIN SELECT COUNT(*) INTO x FROM Cliente WHERE codigo = :NEW.Cliente; IF X = 0 THEN INSERT INTO bodega VALUES ('1001','Venta',50, SYSDATE); END IF; END;