Commit 179fa056 by mercymodest

feat:- add sql

parent 6dfcfe52
### 清空指定设备的事项数据
### 清空指定设备的事项数据
DELETE FROM t_event_users
WHERE event_id IN (
SELECT
event_id
FROM t_events
where device_id=1843853111351402497
);
DELETE FROM t_event_category_relations
WHERE event_id IN (
SELECT
event_id
FROM t_events
where device_id=1843853111351402497
);
DELETE FROM t_event_recurrence_rules
WHERE event_id IN (
SELECT
event_id
FROM t_events
where device_id=1843853111351402497
);
DELETE FROM t_events
WHERE device_id=1843853111351402497;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment