public void addSubscibe(List<PermedipUserSubscribeVo> list) { final List<PermedipUserSubscribeVo> vos=list; String sql="insert into permedip_user_subscribe(user_id,channel_name) values(?,?)"; jdbcTemplate.batchUpdate(sql, new BatchPr…
使用: ROW_NUMBER() over(order by ID desc) insert into dbo.Aa(Name,Nums) select top 10 NickName,ROW_NUMBER() over(order by ID desc) as Nums from td_UserInfo 插入后,Nums的字段就是从1开始的自增数字.…