1

i am trying to print the content's in the table from the database .so i am trying to generate a csv file from database.. any inputs on how to do this always appreciated

1 Answer 1

2

copy the db to your local computer. use sqlite3 to query and redirect the output to a text file.

sqlite> .mode list
sqlite> .separator ,
sqlite> .output test_file_1.txt
sqlite> select * from yourtable;
sqlite> .exit

http://www.sqlite.org/sqlite.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.