生成自增ID列

select ROW_NUMBER() OVER (order by ID desc) as ID,* from 表名

posted on 2014-10-15 09:23  刘顺利  阅读(176)  评论(0编辑  收藏  举报

导航