如何使用 JDBC 驱动程序连接到 MySQL 数据库?这适用于 Cobol,使用 Percobol 软件。
DO-CONNECT.
STRING "jdbc:mysql://gpiw.be/db;"
DELIMITED BY SIZE
"user=user_db;"
DELIMITED BY SIZE
"password=*********"
DELIMITED BY SIZE
INTO JdbcString
EXEC SQL
CONNECT
TO :JdbcString
DRIVER "com.mysql.jdbc.Driver"
END-EXEC
.
怎么了?
资料来源: http ://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html http://www.easysoft.com/developer/interfaces/odbc/sqlstate_status_return_codes.html #28000