U9自增长ID

declare @SNIndex bigint
exec [dbo].[AllocSerials]    @AllocCount = 1,    @StartSN = @SNIndex output

insert into fa_AssetDepreciateScheduleAllocDetail
select 
        @SNIndex 
      ,[CreatedOn]
      ,[CreatedBy]
      ,[ModifiedOn]
      ,[ModifiedBy]
      ,[SysVersion]
      ,[ManagementDepartment]
      ,[AssetLocation]
      ,[UsageDepartment]
      ,[UseMan]
      ,[Project]
      ,[Task]
      ,653.88
      ,[AssetDepreciateScheduleDetail]
      ,[UsageOrg]
      ,[AAIStatus]
      ,[IsNeedGenAAI]
      ,[Workcenter] from fa_AssetDepreciateScheduleAllocDetail where id=1002907228567488


 

 

posted @ 2025-10-15 15:19  江境纣州  阅读(2)  评论(0)    收藏  举报