如何写sql,让select出的数据带着序号

2025-03-07 03:09:41
推荐回答(1个)
回答1:

--用row_number() over(order by ) 
select ROW_NUMBER() over(order by f1) as 序号,* from t_test