← Back to the Developer Tools category

Database Execute

Executes INSERT, UPDATE, or DELETE operations on a database. Returns metadata about the operation including rows affected and last insert ID.

DatabaseExecuteSQL
Try this node

Inputs

NameTypeRequiredDescription
databasedatabaseYesDatabase ID.
sqlstringYesSQL command to execute (INSERT, UPDATE, DELETE, or DDL).
paramsjsonNoQuery parameters (array of values).

Outputs

NameTypeDescription
successbooleanTrue if the operation succeeded.
affectednumberNumber of rows affected by the operation.
lastRowIdnumberLast inserted row ID (for INSERT operations).

Related Nodes in Developer Tools