IAPI::SQLite_buildInsertCommand

property SQLite_buildInsertCommand.

Builds DML command for inserting rows: INSERT INTO <table> VALUES('val1', 'Val2…'ValN')

Since v2.37.5.3: builds a CSV string with “;” as separator when SQliteTable is an empty string

 

HRESULT SQLite_buildInsertCommand(
  BSTR SQliteTable,
  long hStringValueTable,
  BSTR *pVal
);

Parameters

SQliteTable

[in] .   SQL table name or an empty string ( “” )

hStringValueTable

[in] .   String table containing SQL field names and created by MallocStringtable().

pVal

[out, retval] The returned value is BSTR string formated as a SQL statement or

                   CSV string of values with “;” as separator if SqliteTable is a empty string

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI