金宏版本不支持,想其他办法

This commit is contained in:
dinggang 2022-11-18 18:49:49 +08:00
parent 5e403b6ae6
commit d0682ef97d
1 changed files with 0 additions and 7 deletions

View File

@ -1,7 +0,0 @@
DELETE
FROM sys_user_token
WHERE id NOT IN (SELECT s.id
FROM (SELECT sut.id,
ROW_NUMBER() OVER ( PARTITION BY sut.user_id ORDER BY sut.create_date DESC ) AS group_idx
FROM sys_user_token sut) s
WHERE s.group_idx = 1);