文件名称:database
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.76kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
查询数据库首先需要导入数据库对应的JDBC驱动包代码中:需要一个Driver,forname一下 Driver.connect(...连接url,通常里面就指定了远程主机的ip或名称了,不同数据库JDBC的url有不同写法)得到一个Connection 此后...你懂的。~ 补充:UnknownHostException指无法检测到对应的主机,在你机子上做这样的测试: ping 这个host telnet host 端口如果这两个都通过了,一般不会有这个异常了。如果出现类似不允许访问数据库的情况,则要注意给数据库用户添加相应的权限
-Inquires the database first need to import database corresponding JDBC Driver package code: need a Driver, a forname Driver. Connect (... Connection, usually in url specified remote host s IP or name, different database JDBC url have different written) get a Connection after this... You understand. ~ added: UnknownHostException refers to the corresponding host could not be detected, in your machines on do such test: ping the host Telnet host port if the two are passed, general will not have the exception. If appear similar not allowed access to the database of the case, to pay attention to the database users to add the corresponding privileges
-Inquires the database first need to import database corresponding JDBC Driver package code: need a Driver, a forname Driver. Connect (... Connection, usually in url specified remote host s IP or name, different database JDBC url have different written) get a Connection after this... You understand. ~ added: UnknownHostException refers to the corresponding host could not be detected, in your machines on do such test: ping the host Telnet host port if the two are passed, general will not have the exception. If appear similar not allowed access to the database of the case, to pay attention to the database users to add the corresponding privileges
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SearchDemo.class
SearchDemo.java
SearchDemo.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.