My sqltofile cheat sheet
Ever wanted to go directly from an sql to xml files. I do 🙂 Here is a little tool I built a while back. It takes an xml (or any character structure) and an sql and returns one file per
Just another Tech blog from a forgetful mind
Ever wanted to go directly from an sql to xml files. I do 🙂 Here is a little tool I built a while back. It takes an xml (or any character structure) and an sql and returns one file per
sqltofile is a little tool I created a while back to solve the problem of creating XML files fast and efficient from the result of a SQL query. It is build in C++ and currently supports Sqlite3. In the source
I’m here going to demonstrate a simple connection and query to a SQLite database using C. First you need to download and build (if necessary) the SQLite code so you get the sqlite3.so (or sqlite3.lib on Windows) and the necessary
Start SQLite sqlite3 <filename> Show all tables .tables Show whole database as SQL (kind of a “describe” function in MySQL) .schema Create new table example CREATE TABLE users (id INTEGER PRIMARY KEY,login TEXT,pass TEXT); The ‘id’ column is here what
As you might know, SQLite 3 does not support dropping columns from tables with ALTER TABLE command so we have to do a workaround instead. The idea is to create a new table with all the columns (and data) that