Generating insert statements from an sqlite table

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

Is there any tool or script available?

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-18 18:58

    To generate output into a file follow these steps:

    $ sqlite3 mytable.db
    
    sqlite> .output output.sql
    
    sqlite> .dump table_name
    
    sqlite> .quit
    

提交回复
热议问题