REMINDER
Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.
Delete multiple records at once
-
I'm trying to delete multiple records at once and for this purpose I create an SQLSELECT API with the following Source Code:
DELETE FROM Data WHERE id IN ( @PARAM_DATA )
If I test this with only one id, this works:
{
"DATA": "(8970538)"
}But as soon as try multiple id's, I get an error ... Operand should contain 1 column(s).
What might I be doing wrong? And/or is there a better approach for deleting multiple records at once?
Thanks in advance for your help!
-
Hey,
You wrote that your query is :
DELETE FROM Data WHERE id IN ( @PARAM_DATA )
So the computed query would be nested parenthesis no?
DELETE FROM Data WHERE id IN ( (8970538,14361538) )
Maybe try without parenthesis in the input parameters section?
-
that seems to do the trick! @Wassim thanks!