NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

--Oracle 11g Express Edition
-- Put your Oracle SQL statement here and execute it


BEGIN
show_name('Daniel Boy', '1410720010');
END

BEGIN
add_number(10,11);
END

BEGIN
print_bintang;
END

--------------------------------------------

CREATE OR REPLACE PROCEDURE add_number(bil_1 IN NUMBER, bil_2 IN NUMBER)
IS
vTambah VARCHAR(10);
BEGIN
SELECT bil_1 + bil_2 INTO vTambah
FROM dual;

DBMS_OUTPUT.PUT_LINE('Hasil Penambahan ' || vTambah);
END add_number;

------------------------------------------------------------

CREATE OR REPLACE PROCEDURE print_bintang
IS
vBintang VARCHAR(10);
BEGIN
SELECT '*******' INTO vBintang
FROM dual;

DBMS_OUTPUT.PUT_LINE(vBintang);
END print_bintang

---------------------------------------------------------------

CREATE OR REPLACE PROCEDURE show_name(nama IN VARCHAR2, nim IN VARCHAR2)
IS
vName VARCHAR(50);
vNim VARCHAR(10);
BEGIN
SELECT nama, nim INTO vName, vNim FROM dual;

DBMS_OUTPUT.PUT_LINE('Nama : ' || vName);
DBMS_OUTPUT.PUT_LINE('NIM : ' || vNim);

END show_name;

----------------------------------------------------------------

select cetak_bintang from dual;

select func_add_number(10,11) from dual;



-------------------------------------------------------------------

CREATE OR REPLACE FUNCTION cetak_bintang
RETURN VARCHAR2
IS
vBintang VARCHAR(10);
BEGIN
SELECT '*******' INTO vBintang
FROM dual;

RETURN vBintang;
END cetak_bintang;

-----------------------------------------------------------------

CREATE OR REPLACE FUNCTION func_add_number(bil_1 IN NUMBER, bil_2 IN NUMBER)
RETURN VARCHAR2
IS
vTambah VARCHAR(10);
BEGIN
SELECT bil_1 + bil_2 INTO vTambah
FROM dual;

RETURN vTambah;
END func_add_number;

-------------------------------------------------------------------

CREATE OR REPLACE FUNCTION func_show_name(nama IN VARCHAR2, nim IN VARCHAR2)
RETURN
IS
type array_data is varray(3) of varchar2(10);
new_array_data array_data := array_data();

BEGIN
SELECT nama, nim INTO new_array_data(0), new_array_data(1) FROM dual;

RETURN new_array_data;

END show_name;



































     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.