LOL, some times I surprise myself with the most stupid of questions! Yes, you were very clear, Igor, sorry about that!! Continuing with the questions and moving to the step three. int sqlite3_step(sqlite3_stmt*); ------- rc = sqlite3_step(stmt); if(rc != SQLITE_DONE) { sqlite3_close(db); std::cout << "error sqlite3_step: " << rc << std::endl; exit(-3); } Any suggestions?
----- Original Message ----- From: Igor Tandetnik Sent: 06/17/12 06:41 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] C++ programming - int sqlite3_prepare_v2() question Arbol One <arbol...@programmer.net> wrote: > //2 . ) create a table > sqlite3_stmt** stmt; Which part of "sqlite3_stmt* stmt;" did you find unclear? > std::string create_table("CREATE TABLE friend (name TEXT, address TEXT, age INT)"); > rc = sqlite3_prepare_v2( > db, /* Database handle */ > create_table.c_str() , /* SQL statement, UTF-8 encoded */ > create_table.length(), /* Maximum length of zSql in bytes. */ > stmt, /* OUT: Statement handle */ Which part of "pass &stmt" did you find unclear? -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users