金宏版本不支持,想其他办法
This commit is contained in:
parent
5e403b6ae6
commit
d0682ef97d
|
@ -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);
|
|
Loading…
Reference in New Issue