Code Editor
Learn Node SQLite


Not all SQL commands return rows, and in fact, some essential SQL commands do not. If we INSERT a row or CREATE a TABLE we will not receive a row in response. To perform SQL commands that do not return rows, we use to run the command. does not return a value, but, depending on the SQL command, it may attach properties to the this keyword within the scope of the callback. In some cases, like creating a table, will not modify this. In other cases, like when INSERTing a row, a callback to will be able to access this.lastID, the ID of the last INSERTed row.

Report a Bug
If you see a bug or any other issue with this page, please report it here.