JAVA连接ORACLE数据库方法及测试

lixueming_henry 50 0 DOC 2019-09-27 17:09:57

importjava.sql.*;publicclassBc{//声明数据库地址及驱动privateConnectionconn=null;privateStringurl="jdbc:oracle:thin:@localhost:1521:ORCL";privateStringdriver="oracle.jdbc.driver.OracleDriver";privateStringuser="www";privateStringpassword="www";//主函数publicsta

用户评论
请输入评论内容
评分:
暂无评论