sql - Exporting table from sqlite3 -
guys! weeks ago exported tables sqlite3 database via commands in prompt. tables exported in files , there actual sql code of creating tables , inserting data in them. this:
pragma foreign_keys=off; begin transaction; create table [teachers] ( [teacherid] number(9,0), [firstname] varchar2(20), [lastname] varchar2(20), [office] varchar2(20), constraint [sqlite_autoindex_teachers_1] primary key ([teacherid])); insert "teachers" values(1,'jin','bailey','8-59');
......
but when try export same table puts actual data in file
1|jin|bailey|8-59 2|chloe|fry|2-18 3|abigail|cervantes|6-83
... use these commands: .output filename; select * teachers; questin how did previous exporting in way - showing actual code of creating table , inserting data in it?
you should able dump table so:
.output filename .dump tablename
it'll dumped current folder filename specify.
Comments
Post a Comment