Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

One sequence for several tables

$
0
0

Hi,

I need to use ONE sequence in the create statement for several tables (it's a partner solution, where we just want to replace the exising DB in the first step).

 

I created a sequence:

CREATE SEQUENCE ww_seq

    START WITH 1

    INCREMENT BY 1;

 

and then I would like to use this sequence in that way as described in the docu

 

create column table "bla1" (no1 integer generated by default as ww_seq.nextval, text1 varchar(10));

create column table "bla2" (no2 integer generated by default as ww_seq.nextval, text2 varchar(10));

 

 

Is this possible? If yes, what is the syntax?

 

 

thanks a lot

 

Wolfgang


Viewing all articles
Browse latest Browse all 6412

Trending Articles