Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

SQL Anywere 12 insert record for each date between two dates

$
0
0

A part of a function in our database looks like this:

 

 

while @datecount <= today() loop

    set @datecount = dateadd(day, 1, @datecount);


    insert into gt_datetable( countdate ) values ( @datecount );

end loop;

 

We have to insert about 200000 records in this way and wonder if there is a script with a better performance.

 

Thanks

Eric


Viewing all articles
Browse latest Browse all 2182

Trending Articles



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