Generate insert SQL statements from a CSV file

后端 未结 12 2103
轮回少年
轮回少年 2020-12-04 16:07

I need to import a csv file into Firebird and I\'ve spent a couple of hours trying out some tools and none fit my needs.

The main problem is that al

12条回答
  •  爱一瞬间的悲伤
    2020-12-04 17:05

    option 1: 1- have you tried IBExert? IBExpert \ Tools \ Import Data (Trial or Customer Version).

    option 2: 2- upload your csv file to a temporary table with F_BLOBLOAD. 3- create a stored procedure, which used 3 functions (f_stringlength, f_strcopy, f_MID) you cross all your string, pulling your fields to build your INSERT INTO.

    links: 2: http://freeadhocudf.org/documentation_english/dok_eng_file.html 3: http://freeadhocudf.org/documentation_english/dok_eng_string.html

提交回复
热议问题