CREATE OR REPLACE PROCEDURE SOAL1( IN IN_NIM VARCHAR(15), IN IN_NAMA VARCHAR(60), IN IN_ANGKATAN INTEGER, IN IN_K_FAKULTAS VARCHAR(9), IN IN_K_JURUSAN VARCHAR(9), IN IN_K_JENJANG

VARCHAR(9), IN IN_K_PROGRAM_STUDI VARCHAR(9), IN IN_K_SELEKSI VARCHAR(9), IN OPERASI_ID VARCHAR(1) )@ DYNAMIC RESULTS SETS 1 LANGUAGE SQL PI: BEGIN IF (OPERASI_ID = I ) THEN INSERT INTO MAHASISWA VALUES( IN_NIM, IN_NAMA, IN_ANGKATAN, IN_K_FAKULTAS, IN_K_JURUSAN, IN_K_JENJANG, IN_K_PR OGRAM_STUDI, IN_K_SELEKSI ); ELSEIF (OPERASI_ID = U ) THEN UPDATE MAHASISWA SET NAMA = IN_NAMA, ANGKATAN = IN_ANGKATAN, K_FAKULTAS = IN_K_FAKULTAS, K_JURUSAN = IN_K_JURUSAN, K_JENJANG = IN_K_JENJANG, K_PROGRAM_STUDI = IN_K_PROGRAM_STUDI, K_SELEKSI = IN_K_SELEKSI WHERE NIM = IN_NI M; ELSEIF (OPERASI_ID = D ) THEN DELETE FROM MAHASISWA WHERE NIM = IN_NIM; END IF; END P1@