标签:
1.
set @x=0;SELECT @x :=ifnull(@x,0)+1 AS rownum ,order_snFROM order_item;
mysql 方法row_number()方法
原文地址:http://www.cnblogs.com/xiaowei1763369680/p/4930029.html