Open 23bca312 opened 2 months ago
to export table into csv file use dump command
How to apply dump command.
.dump
This is the syntax but replace the content written in < > . i am not sure but try this solution.
to export table data into csv file , you have to use .output command.
Please explain with example.
ok.. let me explain you...!!!
for example your table name is stud. and you want to export its data into "stud.csv" file. you have to enter below command.
.mode column .mode csv .output stud > stud.csv
Is this command is given after creating insert command.
yes... you have to apply this command after creating and inserting record.
one main point is after giving above command, write select query.
select * from stud.
I understand how to create and insert record from sqlite3 but how to export table in csv file?
Please explain and help me to solve this problem.