sql server - Add an incremental number sequence in SQL INSERT SELECT Query -


Below I have a query to insert values ​​from one table to another table.

  Vrkflo_grafform-column (Kstmformaidi, column number, column title, column type, select the column list value, Ijhrekwaerd, columns wide, calculations) column number, column title, type columns, Colmlist value the Ijhrekwaerd, columns wide, calculated Vrkflokastformtemp column where Kstmformtaip IID = 66 and column number> 43   

now CustomformID in WorkFlow_CustomformColumns For me mo Need to add Yon who move from 250 to 300

You can < / em> it in row_number () from insert :

However, it is difficult for me to think of a situation where you really want it. Instead, yo will typically create the CustomerFormId and identity columns and assign the ID to specific numbers.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -