Bulk increment sequence within MS SQL Server -


postgres , oracle include generate_series/connect command allow incrementing sequence more 1. have need increment sequence variable amount before row insertion. example in postgres query below:

select nextval('mytable_seq') generate_series(1,3);

what recommended way accomplish in microsoft sql server?

there stored procedure call can use. alternatively, set sort of while loop calls next value for multiple times , caches them use later.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -