变更之后 为
select id , if (id =(select max(id) from test_su) and (id % 2 != 0 ),id , if(id % 2 = 0 ,id -1 , id + 1)) ,a from test_su order by id
b
2024-01-21 13:19:29
变更之后 为
select id , if (id =(select max(id) from test_su) and (id % 2 != 0 ),id , if(id % 2 = 0 ,id -1 , id + 1)) ,a from test_su order by id
b