tedious-plus / TediousUtils / genParamNameList
function genParamNameList(n): string;
Defined in: TediousUtils.ts:424
Returns a string with automatically generated parameter names in the form "@a,@b,@c,...".
Usage, together with the paramValues option:
paramValues
const values = [123, "abc", true]; await conn.execSql(`insert into t1 values (${genParamNameList(values.length)})`, {paramValues: values});
number
The number of parameter names.
string
There was an error while loading. Please reload this page.