-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathstart.sh
More file actions
38 lines (34 loc) · 987 Bytes
/
start.sh
File metadata and controls
38 lines (34 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
export CLASSPATH=".:/usr/local/lib/antlr-4.2-complete.jar:$CLASSPATH"
alias antlr4='java -jar /usr/local/lib/antlr-4.2-complete.jar'
alias grun='java org.antlr.v4.runtime.misc.TestRig'
example:
declare
-- global variables
num1 number := 95;
num2 number := 85;
begin
dbms_output.put_line('outer variable num1: ' || num1);
dbms_output.put_line('outer variable num2: ' || num2);
declare
-- local variables
num1 number := 195;
num2 number := 185;
begin
dbms_output.put_line('inner variable num1: ' || num1);
dbms_output.put_line('inner variable num2: ' || num2);
end;
end;
CURSOR EXAMPLE
declare
cursor customer_cur is
select id, name, address
from customers;
customer_rec customer_cur%rowtype;
begin
open customer_cur;
loop
fetch customer_cur into customer_rec;
exit when customer_cur%notfound;
dbms_output.put_line(customer_rec.id || ' ' || customer_rec.name);
end loop;
end;