> =A0 =A0require "mysql"
> =A0 =A0dbh =3D Mysql.real_connect("localhost", "root", "******", "valuati=
on")
> =A0 =A0res =3D dbh.query("show tables")
> - puts =A0res
> + rows =3D []
> + puts "Tables_in_valutation"
> + res.each {|x| p x.to_s; rows<<x}
> =A0 =A0res.free

You can take this one step further to actually print a table with
hirb, http://github.com/cldwalker/hirb:

require "mysql"
dbh =3D Mysql.real_connect("localhost", "root", "******", "valuation")
res =3D dbh.query("show tables")
rows =3D []
res.each {|e| rows << e }
puts Hirb::Helpers::AutoTable.render(rows, :headers=3D>["Tables in
valuation"])

With my own database this produces:
+---------------------+
| Tables in valuation |
+---------------------+
| nodes               |
| schema_migrations   |
| taggings            |
| tags                |
| trees               |
| urls                |
+---------------------+
6 rows in set

If you're interested in having irb act as a database shell, try hirb
with one of
the database gems listed in http://tagaholic.me/2010/03/11/hirb-and-tables-=
for-all.html

Gabriel