摘要: 1、Oracle8/8i/9i数据库(thin模式)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();String url="jdbc:oracle:thin:@localhost:1521:orcl";//orcl为数据库的SIDString user="test";String password="test";Connection conn= DriverManager.getConnection(url,user,password); 阅读全文
posted @ 2013-06-20 14:04 jack_ou 阅读(976) 评论(0) 推荐(0)
摘要: 可配合http://www.cnblogs.com/langtianya/archive/2013/03/10/2952442.html学习MySql数据类型1.整型(xxxint)MySQL数据类型含义tinyint(m)1个字节表示(-128~127)smallint(m)2个字节表示(-32768~32767)mediumint(m)3个字节表示(-8388608~8388607)int(m)4个字节表示(-2147483648~2147483647)bigint(m)8个字节表示(+-9.22*10的18次方)2.浮点型(float和double) MySQL数据类型 含义float( 阅读全文
posted @ 2013-06-20 13:27 jack_ou 阅读(586) 评论(0) 推荐(0)
摘要: MySQL:MySQL日期数据类型、MySQL时间类型使用总结 MySQL 日期类型:日期格式、所占存储空间、日期范围 比较。 日期类型 存储空间 日期格式 日期范围 datetime 8 bytes YYYY-MM-DD HH:MM:SS 1000-01-01 00:00:00 ~ 9999-12 阅读全文
posted @ 2013-06-20 13:16 jack_ou 阅读(322) 评论(0) 推荐(0)