Skip to content

Instantly share code, notes, and snippets.

@rrguntaka
Created July 31, 2012 14:36
Show Gist options
  • Save rrguntaka/3217460 to your computer and use it in GitHub Desktop.
Save rrguntaka/3217460 to your computer and use it in GitHub Desktop.
PL/SQL Object-Relational Concepts
select t.* from obj t where t.created > sysdate - 1;
create or replace type person_typ as object(
idno number,
first_name varchar2(50),
last_name varchar2(50))
not final;
create table person_obj_tab(p person_typ);
select t.* from obj t where t.created > sysdate - 1;
insert into person_obj_tab values (person_typ(1, 'test First', 'last Name'));
select p from person_obj_tab;
drop table person_obj_tab;
drop type person_typ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment