In fact, you might want to bundle up the code you write to handle data source configuration and connection into a utility class (that's left for you as an exercise).
实际上可以将处理数据源配置和连接的代码打包成一个工具类(留给读者作为练习)。
For example, a utility class function called NVL would return NVL if the database connection is with Oracle, and COALESCE if the DB connection is with DB2.
例如,如果连接的是Oracle数据库,那么名为NVL的实用程序类函数返回nvl;如果连接的是DB2,那么返回COALESCE。
Oracle: Use the Oracle sqlplus utility to test the connection.
Oracle:使用Oracle sqlplus实用程序来测试连接。
应用推荐