Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Sequnce generated column in Volatile table - response (3) by Harpreet Singh

$
0
0

Hi, 
You can keep on increasing rowid column with this method.
INSERT INTO table2
SEL (SEL MAX(rowidcol) AS mx FROM table2) + ROW_NUMBER () OVER ( ORDER BY col2) AS idval, col2, col3 FROM table1
 
Thanks
Harpreet


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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