mysql數據庫實現oracle的row_number() over功能

首先申明下,這篇文章並不是嚴格意思上的原創,是昨天項目上有一個這樣的需求,要用到row_number() over()的功能。我也是借鑑了別人的博文的https://www.cnblogs.com/yhzh/p/6222580.html 以下是我寫的sql SELECT a.ui_class_id as classId, if(@type=a.ui_class_id OR (@type is nu
相關文章
相關標籤/搜索