Tuples are not inserted sequentially in database table?

后端 未结 3 891
甜味超标
甜味超标 2020-12-12 06:29

I am trying to insert 10 values of the format \"typename_\" + i where i is the counter of the loop in a table named roomtype with attributes typename

3条回答
  •  没有蜡笔的小新
    2020-12-12 07:13

    i guess, that the output is ordered via alphabet ... if you create typename_1 thru typename_9, everything should be ok. you can also use typename_01 ( filled up with zeros ) to get the correct order.

    if you are unsure about that, you can also add a sleep between the insert statements and record the insert-time in the database( as a column )

提交回复
热议问题