Unix Technical Forum

updating collection

This is a discussion on updating collection within the Oracle Database forums, part of the Database Server Software category; --> Hi, I have this structure CREATE OR REPLACE TYPE Slot AS OBJECT ( Name VARCHAR2(255), SlotValue VARCHAR2(2048) ); CREATE ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-23-2008, 09:08 AM
Frederic Houbie
 
Posts: n/a
Default updating collection

Hi,
I have this structure

CREATE OR REPLACE TYPE Slot AS OBJECT (
Name VARCHAR2(255),
SlotValue VARCHAR2(2048)
);
CREATE OR REPLACE TYPE Slot_Array AS VARRAY(30) OF Slot;

CREATE OR REPLACE TYPE Ob AS OBJECT (
ID integer,
Slots Slot_Array
);


how can I update a slotvalue if I have ID using an update statement ?

Thanks

Fred
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-23-2008, 09:14 AM
Daniel Morgan
 
Posts: n/a
Default Re: updating collection

Frederic Houbie wrote:

> Hi,
> I have this structure
>
> CREATE OR REPLACE TYPE Slot AS OBJECT (
> Name VARCHAR2(255),
> SlotValue VARCHAR2(2048)
> );
> CREATE OR REPLACE TYPE Slot_Array AS VARRAY(30) OF Slot;
>
> CREATE OR REPLACE TYPE Ob AS OBJECT (
> ID integer,
> Slots Slot_Array
> );
>
>
> how can I update a slotvalue if I have ID using an update statement ?
>
> Thanks
>
> Fred


You can find examples at: http://www.psoug.org/reference/type.html

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com