Data Manipulation Language (DML) statements are used to insert, update, and delete data in tables. Spice supports DML operations on write-capable data connectors configured with access: read_write.
:::warning[Supported Operations]
Spice currently supports INSERT statements for write-capable connectors. UPDATE and DELETE statements are not yet supported. For data modifications, use the source database directly or re-insert the corrected data.
:::
:::info Spice is built on Apache DataFusion and uses the PostgreSQL dialect, even when querying datasources with different SQL dialects. :::
Insert new rows into a table.
table_name: The name of the target tablecolumn_name: Optional list of column names to insert into. If omitted, values must be provided for all columns in table orderexpression: Values to insert into the corresponding columnsquery: A SELECT statement to insert results from another table or query