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

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -