PL/SQL menggunakan Array

Kali ini saya akan membahas pemrograman PL/SQL menggunakan Array. programnya sederhana seperti biasanya dan masih program dasar….

Script Program :

declare

type larik is

table of number

index by binary_integer;

a larik;

i integer;

begin

for i in 1..5 loop

a(i) :=i*10;

end loop;

for i in 1..5 loop

dbms_output.put_line(‘nilai elemen larik ke- ‘ || i || ‘ = ‘ || a(i));

end loop;

end;

/

Program dan Output.

About heni
I ♡ movie, traveling, fruits Worry less smile more fell happy anyway :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: