Declare @icol1 varchar(30)
Declare iCursor Cursor For 
Select col1 from Table where ..
                Open iCursor
Fetch next from iCursor into @iCol1
While @@Fetch_Status=0
Begin 

                        --你需要执行的SQL语句
Fetch Next from iCursor into @iCol1
End
Close iCursor
Deallocate iCursor