What is the fastest way to insert 100 000 records into an MDB file in C#

前端 未结 3 1870
迷失自我
迷失自我 2020-12-21 15:54

I know this questions is rather general, but I have searched the whole day and I haven\'t been able to find the proper way to do this.

Here is my code to insert some

3条回答
  •  旧时难觅i
    2020-12-21 16:12

    You can use a numbers table to add multiple identical rows, for example:

    INSERT INTO aTable ( aText, aNumber )
    SELECT @param1 , @param2 
    FROM Numbers
    WHERE Numbers.Number<1000
    

    The Numbers table is:

    Number
    0
    1
    2
    <...>
    

提交回复
热议问题