DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name [[AS] tbl_alias]
[PARTITION (partition_name [, partition_name] ...)]
[WHERE where_condition]
[ORDER BY ...]
[LIMIT row_count]
DELETE
FROM cl_purchases
WHERE id IN (
SELECT id
FROM cl_purchases
WHERE point = 600258
AND date BETWEEN '2020-03-01 00:00:00' AND '2020-03-31 23:59:59'
AND order_type = 'delivery'
AND provider <> 'iikodelivery'
GROUP BY order_id
HAVING COUNT( id ) > 1
)
infoObjectText.enabled = infoObject != null;
let testArr = [];
function addInArr(data){
testArr.push(data);
}
addInArr("data");
addInArr("SomeData");
console.log(testArr);