declare @idcount int
select @idcount=(select min(id) from TableName)
print @idcount
把SQL语句查到的表中最大最小的ID值、并赋给变量
最新推荐文章于 2021-04-08 18:43:23 发布
declare @idcount int
select @idcount=(select min(id) from TableName)
print @idcount