大佬地址:https://blog.csdn.net/superit401/article/details/78056654
select @rownum:=@rownum+1 AS 序号, t_sale_order_product.*
from t_sale_order_product ,(SELECT @rownum:=0) r
大佬地址:https://blog.csdn.net/superit401/article/details/78056654
select @rownum:=@rownum+1 AS 序号, t_sale_order_product.*
from t_sale_order_product ,(SELECT @rownum:=0) r