Click here to Skip to main content
15,898,035 members
Home / Discussions / Database
   

Database

 
AnswerRe: What is SSIS (Sql Server Integration Services) Pin
Pete O'Hanlon11-May-07 3:07
mvePete O'Hanlon11-May-07 3:07 
QuestionSSRS With SSIS Pin
praveenkjohn11-May-07 1:03
praveenkjohn11-May-07 1:03 
AnswerRe: SSRS With SSIS Pin
Saravanan Soundar Rajan11-Jun-14 21:46
Saravanan Soundar Rajan11-Jun-14 21:46 
QuestionSSIS Package Pin
Panchal Hardik11-May-07 0:04
Panchal Hardik11-May-07 0:04 
QuestionOptimization in Query Pin
Panchal Hardik10-May-07 23:48
Panchal Hardik10-May-07 23:48 
AnswerRe: Optimization in Query Pin
Pete O'Hanlon10-May-07 23:55
mvePete O'Hanlon10-May-07 23:55 
QuestionCreating Temp Tables in Oracle 8i using SPs Pin
Blumen10-May-07 19:47
Blumen10-May-07 19:47 
AnswerRe: Creating Temp Tables in Oracle 8i using SPs Pin
andyharman10-May-07 23:19
professionalandyharman10-May-07 23:19 
Hi Blumen

There are several ways of emulating temporary tables in Oracle -

Global Temporary Tables
This is set up in the same way as a normal database table:
create global temporary table MyTable (
  MyColumn INT,
  etc ...
  ) on commit preserve
Each connection can then insert/update/delete/select to their heart's content - safe in the knowledge that the activity is entirely local to that session.

PL/SQL Tables
If you don't need to store much data then a PL/SQL table might do the trick:
TYPE primary_keys_tabtype IS TABLE OF NUMBER NOT NULL
      INDEX BY BINARY_INTEGER;
ClientIdList primary_keys_tabtype;
See here[^] for details.

Refactoring SQL
You can sometimes remove the need for temporary tables by refactoring your select statements. Inline views allow you to use a select statement within the from-clause of another statement:
select A.*
from (
  select 'Some complex stuff'
  from SomeTable
) as A
Newer versions of Oracle now supports a feature called "Subquery Refactoring". See here[^] for details.

Hope that helps.
Andy
QuestionDeriving Parameter Types from Sql Pin
Tristan Rhodes10-May-07 12:52
Tristan Rhodes10-May-07 12:52 
QuestionAlter Table Add Index Pin
Shahzad.Aslam10-May-07 3:56
Shahzad.Aslam10-May-07 3:56 
AnswerRe: Alter Table Add Index Pin
Elina Blank10-May-07 4:24
sitebuilderElina Blank10-May-07 4:24 
GeneralRe: Alter Table Add Index Pin
Shahzad.Aslam10-May-07 4:28
Shahzad.Aslam10-May-07 4:28 
GeneralUsing a timestamp (or something similar) Pin
Psycho-*Coder*-Extreme10-May-07 1:41
Psycho-*Coder*-Extreme10-May-07 1:41 
GeneralRe: Using a timestamp (or something similar) Pin
Tristan Rhodes10-May-07 12:57
Tristan Rhodes10-May-07 12:57 
Questioninsert record and get it's ID Pin
blackjack21509-May-07 23:45
blackjack21509-May-07 23:45 
AnswerRe: insert record and get it's ID Pin
Colin Angus Mackay10-May-07 0:09
Colin Angus Mackay10-May-07 0:09 
GeneralRe: insert record and get it's ID Pin
blackjack215010-May-07 0:27
blackjack215010-May-07 0:27 
GeneralRe: insert record and get it's ID Pin
Colin Angus Mackay10-May-07 0:37
Colin Angus Mackay10-May-07 0:37 
AnswerRe: insert record and get it's ID Pin
Andrew Torrance10-May-07 0:14
Andrew Torrance10-May-07 0:14 
AnswerRe: insert record and get it's ID Pin
conwamt10-May-07 8:11
conwamt10-May-07 8:11 
GeneralRe: insert record and get it's ID Pin
Richard Blythe10-May-07 9:45
Richard Blythe10-May-07 9:45 
GeneralRe: insert record and get it's ID Pin
meeram39510-May-07 21:30
meeram39510-May-07 21:30 
GeneralRe: insert record and get it's ID Pin
Pete O'Hanlon10-May-07 22:57
mvePete O'Hanlon10-May-07 22:57 
AnswerRe: insert record and get it's ID Pin
Richard Blythe10-May-07 16:28
Richard Blythe10-May-07 16:28 
Questionindependent table ? Pin
Mr.Kode9-May-07 20:50
Mr.Kode9-May-07 20:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.