sql 取最大加1

select @OPartItemID = 1 + max(OPartItemID) FROM PP_OperationPartDetail

原文地址:https://www.cnblogs.com/dekevin/p/2495520.html