创建存储过程p6,在指定课程cname中将学分ccredit增加 2 分。

CREATE OR REPLACE PROCEDURE p6(v_cname IN c.cname%TYPE) IS
BEGIN
  UPDATE c SET ccredit = ccredit + 2 WHERE cname = v_cname;
  COMMIT;
END;
/