ALTER PROCEDURE [dbo].[sqlcount] AS begin insert into score (course,studentid,score) values('dfs',3,23) end begin select top 1 * from score order by scoreid desc end begin select * from Class end 去begin and 即可