首页 相关文章 JAVA连接Oracle的代码

JAVA连接Oracle的代码

最新做了一个连接Oracle的代码,要配好环境变量: ClassPath=.;E:j2sdk14libools.jar;E:oracleora90jdbclibclasses12.zip
测试的电脑已经装好Oracle客户端,而且用SQLplus可以连接上。
/*
* This sample shows how to list all the names from the EMP table
*
* It uses the JDBC THIN driver. See the same program in the
* oci8 samples Directory to see how to use the other drivers.
*/ // You need to import the Java.sql package to use JDBC
import java.sql.*; class Test
{
public static void main (String args [])
throws SQLException
{
// Load the Oracl...[ 查看全文 ]

2016-02-19 标签:

JAVA连接Oracle的代码的相关文章

手机页面
收藏网站 回到头部