SQLite Forum

multiple queries
Login
```
int sqlite3_prepare_v2(
  sqlite3 *db,            /* Database handle */
  const char *zSql,       /* SQL statement, UTF-8 encoded */
  int nByte,              /* Maximum length of zSql in bytes. */
  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */
  const char **pzTail     /* OUT: Pointer to unused portion of zSql */
);
```

I can retrieve the SQL statement that is executed (in the first pass of the prepare ... step ... finalize loop) from **pmtStmt; using the same code with argument **pzTail returns null or "". (I've tried several other C# expressions without success).

<b>Is there an SQLite3 function to retrieve the string from the pointer **pzTail?</b>

If there isn't, any clues on how to retrieve the string from the pointer **pzTail with C#?