jeudi 10 août 2017

form sqlite create table query by reading a file

I have a text file which has two rows: First row contains space separated column names and second row contains space separated column type

First_Name Last_Name Age

string string integer

How can I use this data to form a create table query (C++ Interface) in sqlite. For each file column name and corresponding datatype can be different.

Aucun commentaire:

Enregistrer un commentaire