0
従業員を最大で給与に削除するプロシージャを作成したいとします。私はこのコードを持っている:プロシージャOracle SQLの作成中にエラーが発生しました
create or replace procedure DelMostExpensive
as
begin
delete from hr.Employees where
hr.Employees.EmpName=
(select EmpName from hr.Employees where
salary = (select max(salary) from hr.Employees))
and hr.Employees.birthDate=
(select birthDate from hr.Employees where
salary = (select max(salary) from hr.Employees));
end;
をしかし、私はこれらのエラーを取得: エラー(4,1):PL/SQL:SQL文を無視します。 エラー(4,16):PL/SQL:Ora-00942表またはビューが存在しません。 どのように動作させるには? 4行目で
私は翻訳を忘れてしまいました。 hrはスキーマ、hr.Employeesは表そのものです。 – agiro
あなたは 'desc fr.Employees'を実行できますか? –
私は午前。私は名前、給料、仕事、その他のものを見る。 – agiro