On this Page
Table of Contents | ||||
---|---|---|---|---|
|
Snap type: | Write | |||||||
---|---|---|---|---|---|---|---|---|
Description: | This Snap executes a SQL delete with the given properties. | |||||||
Prerequisites: | [None] | |||||||
Support and limitations: |
| |||||||
Account: | This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See MySQL Account for information on setting up this type of account. | |||||||
Views: |
|
Settings | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Label | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | ||||||||||||||
Schema name | The database schema name. In case it is not defined, then the suggestion for the Table Name will retrieve all tables names of all schemas. The property is suggestible and will retrieve available database schemas during suggest values.
Example: SYS | ||||||||||||||
Table name | Required. The table name to execute the delete on.
| ||||||||||||||
Delete Condition (Truncates Table if empty) | This is an expression property to specify the SQL WHERE clause of the delete statement. The delete condition may also be passed via an upstream Snap or through the pipeline parameters.
Multiexcerpt include macro | name | ME_DB_Snaps_Query_Examplespage | Oracle - Update | | ||||||||||
Number of retries | Specifies the maximum number of attempts to be made to receive a response. The request is terminated if the attempts do not result in a response. Example: 3 Default value: 0 | ||||||||||||||
Retry interval (seconds) | Specifies the time interval between two successive retry requests. A retry happens only when the previous attempt resulted in an exception. Example: 10 Default value: 1 | ||||||||||||||
|
|
Example
In this pipeline, we delete an entire table 'Disney' from the 'Snaplogic' schema.
Note |
---|
Give the delete conditions if a certain record or a column is to be deleted. You may also use the MySQL Select Snap to select a name of the record, and then give the delete condition in the MySQL Delete Snap to delete only those particular values from the table that satisfy the delete condition. |
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|