select * from table where id in (5,3,6,1) order by field(id,5,3,6,1)
记录按照5,3,6,1的顺序返回
如果没有order by field 将按 1,3,5,6的顺序返回
Powered by: 博客园 Copyright © 2024 陈达辉 Powered by .NET 9.0 on Kubernetes