SQLITE

All post related to SQLITE

SQLite CSV import

I am using SQLite build-in import command for importing records from text files.

The code being follows:

$ sqlite3 dbname.db
SQLite version 3.1.3
Enter ".help" for instructions
sqlite> .separator "\t"

Once I have set the field separator, I do import:

sqlite> .import filename.txt tablename

This solves my purpose but have any one tried on any user-defined function to import data to sqlite.

Cumulus Tag Cloud

Kiran Says

I love work environment which is:

Informal yet professional
Demanding yet rewarding
Challenging yet inspiring
Mediocrity is not an option
Having fun is serious business
Making mistakes is human
Forgiveness is Company Policy

Travelling Sucks