Created
July 31, 2012 14:36
-
-
Save rrguntaka/3217460 to your computer and use it in GitHub Desktop.
PL/SQL Object-Relational Concepts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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