![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 62
Othello_cj
这个作者很懒,什么都没留下…
展开
-
jdbc连接各种数据库方式列表
下面罗列了各种数据库使用JDBC连接的方式,可以作为一个手册使用。 1、Oracle8/8i/9i数据库(thin模式) Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); String url="jdbc:oracle:thin:@localhost:1521:orcl"; //orcl为数据库的SID Stri转载 2006-10-29 21:36:00 · 662 阅读 · 0 评论 -
java简单数据类型中各类型数据间的优先关系和相互转换
1.不同类型数据间的优先关系如下: 低------------------------------------------->高 byte,short,char-> int -> long -> float -> double 2.自动类型转换规则 整型,实型,字符型数据可以混合运算。运算中,不同类原创 2006-11-07 16:58:00 · 1032 阅读 · 0 评论