跳到主要内容

Delete multiple records

Example DB Table

smartPanda.mdh.brand

CREATE TABLE `brand`
(
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`logo` text,
`logo_url` varchar(255) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`disabled` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);

Query the fields specified in the method name and delete multiple records

db.schema.table.delBatch Query the fields specified in the method name and delete multiple records.

Return the count of rows affected.

API delBatchBy*

Example Request

{
"method": "smartPanda.mdh.brand.delBatchById",
"params": [
1,
2,
3
]
}

Example Response

3