SELECT @rownum :=@rownum + 1 AS rank,t.* FROM table t, (SELECT @rownum := 0) r //table 是一张表
posted on 2018-07-02 23:55 F1yBear 阅读(78) 评论(0) 编辑 收藏 举报