Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Is it possible to UPDATE a temporary table

$
0
0

Justin Molenaur wrote:

 

Patrick, from what I know, temporary tables are just that - temporary. You can insert into them, but as soon as the stored procedure session ends, the contents are gone. An update would work only within the context of the stored procedure.

That's nearly correct - the lifetime of temporary tables looks like this:

 

global temporary tablelocal temporary table
structurepersisted - table structure will be available after the end of the creating transactionnot persisted - table structure is gone after the end of the transaction
datadata is private to the session that created it and will be deleted after the end of the transaction (COMMIT or ROLLBACK)data is private to the session that created it and will be deleted after the end of the transaction (COMMIT or ROLLBACK)

 

All this and the list of supported operations on the different types of temp. tables can be found here CREATE TABLE - SQL Reference - SAP Library.

 

- Lars


Viewing all articles
Browse latest Browse all 8968

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>