c++ - sqlite db2 error for symbian -


After

I am getting the error for the statement

  tint err1 = stmt.Prepare (db , _L ("MyContacts (ServerContactID, Username, First Name, Last Name, Country, IsBlocked, RequestStatus, MarkForDeletion) values ​​(enter: ServerContactID ,: Username, First, LastName, Country ,: IsBlocked ,: RequestStatus ,: MarkForDeletion) "));  

  / ** SQL database specific error: Type the return code on SQL API with a call from class = "text after" itemprop = "text"> 

-311 sqldb.h This is a normal SQL error Or indicates missing database @see RSqlStatement @see ESqlDbError @see TSqlRetCodeClass @publishedAll @prototype * / constant tint KSqlErrGeneral = -311;

If you are making the first question:

  • RSqlDatabase db is properly connected

    < / Li>
  • Does the database have a table called MyContacts ?

This is also a good habit of ending your semicolon ; SQL statement with though they are not strictly necessary (the device for testing is not here, whether it is needed in this case.)


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -