在 05 中 有个RowNumber() 函数
select Row_Number() over(order by MebID) as 自动增长列, from m_main
用法如上
Row_Number() over ( order by 排序的字段) 通过这个
上面的方法很好用
在介绍给方法,这是一个朋友教给我的
select (select count(pointid) from m_Point as A where A.pointid<=B.pointid) as 自动增长列 from m_Point as B
这个方法通过查找时 每次显示出现有的数量 效果和自增量一样