SQL to Ruby Type Conversion
SQL Type Ruby Type
BOOL TrueClass, FalseClass ( or String)
VARCHAR, CHAR String
INT, BIGINT Integer (Fixnum or Bignum)
FLOAT, DOUBLE, REAL Float
BLOB, CLOB, LONG, LONG RAW String
TIME DBI::Time (or String)
DATE DBI::Date (or String)
TIMESTAMP DBI::Timestamp (or String)
Related examples in the same category