Generate sql insert script from excel worksheet

后端 未结 13 1037
情深已故
情深已故 2020-11-28 18:05

I have a large excel worksheet that I want to add to my database.

Can I generate an SQL insert script from this excel worksheet?

13条回答
  •  佛祖请我去吃肉
    2020-11-28 18:41

    Here is another tool that works very well...

    http://www.convertcsv.com/csv-to-sql.htm

    It can take tab separated values and generate an INSERT script. Just copy and paste and in the options under step 2 check the box "First row is column names"

    Then scroll down and under step 3, enter your table name in the box "Schema.Table or View Name:"

    Pay attention to the delete and create table check boxes as well, and make sure you examine the generated script before running it.

    This is the quickest and most reliable way I've found.

提交回复
热议问题