On Fri, Apr 8, 2011 at 1:17 AM, RAKESH HEMRAJANI <rakesh_hemraj...@hotmail.com> wrote: > if (sqlite3FindTable(db, "emp", 0) ==0 ) > { > //Table not found, create the table > rc = sqlite3_exec(db, "create table emp......;",0, 0, 0); > }
I feel compelled to point out that sqlite3FindTable() is part of the private API, which you are not supposed to use. (I can't immediately find a link for that statement, sorry.) The naming convention is that all public API functions start with sqlite3_, any function in camelCase is an internal function, subject to change at any time. I'd go with the 'CREATE TABLE IF NOT EXISTS' route as suggested by others. Glenn McAllister _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users