ifobject_id(sp_MyAdjustRecordOrder)0
dropprocsp_MyAdjustRecordOrder
go
CreateProcsp_MyAdjustRecordOrder(@OldStuIdnvarchar(10),@NewStuIdnvarchar(10))
as
--@OldStuid先生学号(用以暗示被挪动的纪录),
--@NewStuid先生学号(用以暗示将被挪动的纪录拔出的新地位)
begin
declare@Old_i_idint,@New_i_idint
declare@i_BlockCountint--行将被挪动的纪录块条数
declare@iint--轮回变量