------解决方案-------------------- 直接用select row_number over(order by 字段) as id,a.[字段] from 表 as a
------解决方案-------------------- select row_number() over(order by CreateTime),a.[CarID] from [KYK_B2C_Publish].[ShoppingCar].[ShoppingCars] a 上面的少了一个括号
------解决方案--------------------