open my_cursor
declare @name sysname
fetch next from my_cursor into @name
while(@@fetch_status=0)
begin
print '姓名: ' + @name
fetch next from my_cursor into @name
end
fetch first from my_cursor into @name
print @name
/* update 個人資料 set 姓名='zzg' where current of my_cursor */
/* delete from 個人資料 where current of my_cursor */
close my_cursor
deallocate my_cursor