or even:
(0..4).each { |q| conn.exec( 'UPDATE SCH_EVENT SET P_ID = 2444334 where 
RANK = #{q.to_f} AND playlist_id = 432' ) }

<3 one liners
-- 
Posted via http://www.ruby-forum.com/.