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

Hi Partick,

 

It seems like we can do updates on "Local Temporary Table" but we cannot do on "Local Temporary Column Table".

 

Just tried on the example from the previous thread on "Temporary Table"

 

CREATE PROCEDURE LARSEXAMPLE ( )
LANGUAGE SQLSCRIPT  SQL SECURITY INVOKER  AS          
/********* Begin Procedure Script ************/
BEGIN    create local temporary table #mytemp (id integer, name varchar(20));    insert into #mytemp values (1, 'Lars');    update #mytemp set name = 'breddemann' where id = 1;    select * from #mytemp;
END;
/********* End Procedure Script ************/

call larsexample;


Capture.PNG


But when i tried with local temporary column table , i get this "Feature not supported" message.


Capture1.PNG


I wonder why such a limitation on "Column" temporary table. Am sure there would be an logical reason for this behavior. ( which i could not get it )

 

Regards,

Krishna Tangudu

 

Regards,

Krishna Tangudu


Viewing all articles
Browse latest Browse all 8968

Trending Articles



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