Skip to content

Commit ada7199

Browse files
authored
Create 1-create-table-with-annotations.sql
1 parent c0c7221 commit ada7199

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
REM Script for 23c: 1-create-table-with-annotations.sql
2+
3+
-- optional drop table emp_annotated
4+
drop table if exists emp_annotated; -- with new 23c "if exists" syntax
5+
6+
-- create a table with two column annotations for ename and salary and a table annotation
7+
create table emp_annotated
8+
( empno number,
9+
ename varchar2(50) annotations (display 'lastname'),
10+
salary number annotations (person_salary, column_hidden)
11+
)
12+
annotations (display 'employees');

0 commit comments

Comments
 (0)