From: Jeff Miller Date: 2008-04-05T08:49:48+09:00 Subject: MySQL Query - Stupid question... Hello, Although I've dealt with many many SQL queries and whatnot, I actually don't know how to return the number of rows it returned... I'm using the MySQL gem and making my queries like this: db1 = Mysql.connect("localhost", "root", "root", "project") @new_entries = db1.query("SELECT * FROM new_entries") ...but what can I do to get the number of rows as well as the data from the table? Thanks, - Jeff Miller -- Posted via http://www.ruby-forum.com/.