mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
add an example for a prepared sql query (#621)
An example sql query for the given parameter example would help users to understand how they could use prepared statements.
This commit is contained in:
parent
7c759e10dd
commit
3c4337f238
@ -74,7 +74,8 @@
|
||||
$name:"John Doe"<br />
|
||||
}</code><br />
|
||||
Parameter object names must match parameters set up in the Prepared Statement. If you get the error <code>SQLITE_RANGE: bind or column index out of range</code>
|
||||
be sure to include $ on the parameter object key.</p>
|
||||
be sure to include $ on the parameter object key.<br />
|
||||
The sql query for the example above could be: <code>insert into user_table (user_id, user) VALUES ($id, $name);</code></p>
|
||||
<p>Using any SQL Query, the result is returned in <code>msg.payload</code></p>
|
||||
<p>Typically the returned payload will be an array of the result rows, (or an error).</p>
|
||||
<p>You can load sqlite extensions by inputting a <code>msg.extension</code> property containing the full
|
||||
|
Loading…
Reference in New Issue
Block a user