回覆列表
  • 1 # 使用者7255976288107

    CREATE OR REPLACE PROCEDURE upsal(emp_id integer) IS

    BEGIN

    for rc in (select duty, workplace from emp where empid = emp_id) loop

    if rc.duty = "MANAGER" and workplace = "DALLAS" then

    update emp set salary = salary * 1.15;

    end if;

    if rc.duty = "CLERK" and workplace = "NEW YORK" then

    update emp set salary = salary * 0.95;

    end if;

    end loop;

    END;

  • 中秋節和大豐收的關聯?
  • 家裡的無線網只有膝上型電腦能連上,手機連不上怎麼辦?