libodbc++ is a class library for accessing databases from C++. Its interface is very close to JDBC2, and it works on top of ODBC.