-
Notifications
You must be signed in to change notification settings - Fork 24
/
on.sql
38 lines (34 loc) · 867 Bytes
/
on.sql
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
create table tq84_break (
col_1 number,
col_2 varchar2(12)
);
insert into tq84_break values ( 1, 'foo' );
insert into tq84_break values ( 1, 'bar' );
insert into tq84_break values ( 4, 'quattro' );
insert into tq84_break values ( 8, 'hello' );
insert into tq84_break values ( 1, 'baz' );
insert into tq84_break values ( 8, 'world' );
insert into tq84_break values (42, 'The number!');
insert into tq84_break values ( 8, 'world' );
insert into tq84_break values ( 4, 'four' );
break on col_1
select
col_1,
col_2
from
tq84_break
order by
col_1;
--
-- COL_1 COL_2
-- ---------- ------------
-- 1 foo
-- bar
-- baz
-- 4 four
-- quattro
-- 8 hello
-- world
-- world
-- 42 The number!
drop table tq84_break purge;