Using Temp Tables in Oracle 8i

Using Temp Tables in Oracle 8i

Oracle 8i introduces the concept of temp tables. This feature long since enjoyed by SQL Server developers enables data to be visible on a Session orTransaction basis. To create an Oracle 8i temp table use the followingsyntax:

 Create global temporary table tempTable(id number,value number);

This creates a table that is visible to all sessions, but only the dataplaced in the table is visible for the current working session. The temptable is resident until the session that created it is closed.

Additionally, temp tables can be created for use on a per-transactionbasis. The following syntax creates a temp table that purges all data once atransaction is committed. Or to preserve data once a transaction has beencommitted, use the “on commit preserve rows” syntax.

 Create global temporary table tempTable(id number,value number) on commit delete rows;
Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved