Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Variable insert statement

$
0
0

What revision you're on Connor?

 

On rev. 92 this just works:

 

create sequence seq1;

 

create column table aaa as (select 1 as ID, * from users) with no data;

 

insert into aaa (select seq1.nextval, * from users);

 

select * from aaa

 

IDUSER_NAME      USER_IDUSER_MODE...
1SYS            131072LOCAL    ?               
2SYSTEM        131074LOCAL    ?               
3_SYS_STATISTICS132618LOCAL    ?               
...

 

 

- Lars


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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