create or replace procedure Pr_delCar(d2_cpkid in d2_car.cpkid%type) is
begin
select t.*, t.rowid from D2_HC t where fkpkid in (d2_cpkid) and hctype='2';
select t.*, t.rowid from D2_KYRETURNCONTENT t where kypkid in (select kypkid from D2_KY t where fkpkid in (d2_cpkid) and kytype='2');
select t.*, t.rowid from D2_MONITOR t where ppkid in (d2_cpkid) and zt='2';
select t.*, t.rowid from D2_PASSCAREXT t where cpkid in (d2_cpkid);
select t.*, t.rowid from D2_KY t where fkpkid in (d2_cpkid) and kytype='2';
select t.*, t.rowid from D2_CAR t where cpkid in (d2_cpkid);
end;
这样写有什么错吗???在oracl里面报错的.
begin里面的内容应该是delete 我为了测试,写的是查询