dbTalk Databases Forums  

Re: Need SQL Server Temp Table equivalent (challenge!)

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Re: Need SQL Server Temp Table equivalent (challenge!) in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Daniel Morgan
 
Posts: n/a

Default Re: Need SQL Server Temp Table equivalent (challenge!) - 07-13-2003 , 06:05 PM






Kin Ng wrote:

Quote:
"Anurag Varma" <avarmadba.skipthis (AT) yahoo (DOT) com> wrote

stop posting same messages in different oracle newsgroups.
Its a waste of bandwidth and other people's time.

Anurag

Sorry. I didn't know which group should I post to for this kind of
question. Frankly I was hoping more people can see this as I saw lots
of "you don't need temp table" statement but couldn't find any
solution for my real need.
c.d.o.marketplace ... things you are buying or selling
c.d.o.server ... things related to Oracle RDBMS server
c.d.o.tools ... things related to Forms, Reports, Designer, Discoverer, JDeveloper, etc.
c.d.o.miscellaneous ... everything else

Never cross-post unless you intent to make people cross.

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




Reply With Quote
  #2  
Old   
Niall Litchfield
 
Posts: n/a

Default Re: Need SQL Server Temp Table equivalent (challenge!) - 07-14-2003 , 03:02 AM






"Kin Ng" <kin_ng5 (AT) yahoo (DOT) com> wrote

Quote:
I have a need to create a temp table for a session only. The temp
table's structure is not fixed. Thus the current Oracle temp session
table won't work.
Well you can create tables using dynamic SQL but if you don't intend to
store this data in permanent tables, then I would have thought that an array
(PL/SQL table ) would do you fine. If you do intend to permanently store the
data (and if you don't why are you using an RDBMS) then make sure you get an
appropriate ER diagram done and the appropriate structure should fall out.


--
Niall Litchfield
Oracle DBA
Audit Commission UK





Reply With Quote
  #3  
Old   
Kin Ng
 
Posts: n/a

Default Re: Need SQL Server Temp Table equivalent (challenge!) - 07-14-2003 , 02:04 PM



"Niall Litchfield" <n-litchfield (AT) audit-commission (DOT) gov.uk> wrote

Quote:
"Kin Ng" <kin_ng5 (AT) yahoo (DOT) com> wrote in message
news:d5b3f600.0307121142.3465010 (AT) posting (DOT) google.com...
I have a need to create a temp table for a session only. The temp
table's structure is not fixed. Thus the current Oracle temp session
table won't work.

Well you can create tables using dynamic SQL but if you don't intend to
store this data in permanent tables, then I would have thought that an array
(PL/SQL table ) would do you fine. If you do intend to permanently store the
data (and if you don't why are you using an RDBMS) then make sure you get an
appropriate ER diagram done and the appropriate structure should fall out.
"Well you can create tables using dynamic SQL " This is not allowed as
we did follow the recommendation of our good data modeler. i.e. We
have a good ER diagram and it didn't solve problems like that.

Can you give an example of how an Array can be returned to the users
via a view?


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.