Domonic Tom wrote:
> Would anyone know how to get the table names from a specific database in C++ 
> or just using the C API for sqlite?

You execute the query "SELECT name FROM sqlite_master WHERE type='table';".

> I have tried the below but I get nothing.
>
>  string exec_string = "SELECT name FROM sqlite_master  WHERE type='table' 
> ORDER BY name;";

Then your database does not have any tables.

This typically happens when you use the wrong file name; SQLite will
happily create a new, empty database in this case.


Regards,
Clemens
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to