Sql Declare Cursor For Update