Function StackDatabaseMysqlExamples
Delete Query
Example 1: Delete Data
In this example, we'll use the MySQL Execute function with the Type set to Delete
to delete data and return the number of affected rows.
Add MySQL Execute Function
Start by adding the MySQL Execute function. Give it a Result Name and set the Type to Delete
.
Write the SQL Query
In the function configuration, write the SQL query you want to use to delete the data.
Assume we have a users
table and want to delete users where id > 10
. The table schema looks like this:
Now write the following delete query: