我正在尝试使用此更改表的主要,
ACCEPT p_oldserial PROMPT 'Enter Old Serial: ';
ACCEPT p_newserial PROMPT 'Enter New Serial: ';
INSERT INTO car
(SELECT serial, cname, make, model, year, color, trim, enginetype, purchinv, purchdate, purchfrom, purchcost, freight, totalcost, listprice
FROM customer
WHERE serial='&p_oldserial');
UPDATE saleinv
SET serial='&p_newserial'
WHERE serial='&p_oldserial';
UPDATE serivceinv, saleinv;
DELETE FROM customer
WHERE serial='&p_oldserial';
COMMIT;
但我得到了 ORA-02291。我的脚本有错误吗?