What is the best way to auto-generate INSERT statements for a SQL Server table?

前端 未结 23 1430
难免孤独
难免孤独 2020-11-22 09:47

We are writing a new application, and while testing, we will need a bunch of dummy data. I\'ve added that data by using MS Access to dump excel files into the relevant table

23条回答
  •  太阳男子
    2020-11-22 10:16

    I use sqlite to do this. I find it very, very useful for creating scratch/test databases.

    sqlite3 foo.sqlite .dump > foo_as_a_bunch_of_inserts.sql

提交回复
热议问题