Generating insert statements from an sqlite table

前端 未结 6 862
滥情空心
滥情空心 2021-02-18 18:28

Is there any tool or script available?

6条回答
  •  春和景丽
    2021-02-18 18:50

    As a quick work around for fewer column tables. We can use string concatenation function. Sample example is- select 'insert into TABLE_NAME values('''|| COLUMN1 || ''',''' || COLUMN2 || ''',''' || COLUMN3 || ''',''' || COLUMN4 || ''');' from TABLE_NAME

提交回复
热议问题