From: Faby Date: 2006-07-19T19:15:06+09:00 Subject: Ruby + oracle last row Hi all, I am new to ruby so any help will be greatly appreciated. I am using ruby with oracle, and the following text is an extract of my programm. (A cursor is fecthing the rows of a sql query.) while row=cursor.fetch if(row[0]<4) outputFile<=4) totalRow4+=row[1] end end What I need now is to be able to determine when my cursor has reached the last row of my query ie if row==last_row.... I hope i explain myself clearly enough Thanks Faby