替换变量table_name 和 group_by

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DELETE
FROM
${table_name}
WHERE ID NOT IN (
SELECT
*
FROM
(
SELECT
Max(ID)
FROM
${table_name}
GROUP BY
${group_by}
bb
)
)