If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Other PC Databases > SQLite - sqlite3_get_table ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Dec 2011
Posts: 13
SQLite - sqlite3_get_table ?

Wondering if anyone has used SQLite. I'm having trouble with the basics.
sqlite3_get_table function.

Before I start.. I just want to say how ridiculously unclear the Apress book 'The Definitive Guide to Sqlite' is. I'm inclined to say, don't buy it. I can't make any sense of their explanations and they don't explain things properly. Leave you hanging if you know what I mean. Anyway, that's off my chest now. A book burning session will top it off.

For the sqlite3_get_table function the third argument is to be declared before I use the function. Like so:

char *results[]; // thats it.

But I get the error saying that the size of 'results' can't be determined. 'results' is the third argument in the sqlite3_get_table function which receives the result funnily enough. From what I can see it is supposed to be declared empty but that's probably wrong.

Why am I getting this error AND... Does anyone know how to use this function properly because the useless book I bought is about to be put in the oven.

Thanks to anyone who can help me..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On