oracleÊý¾Ý¿â×Ö¶ÎÀàÐͼ°ÆäÓëJava.sql.TypesµÄ¶ÔÓ¦
×Ö·ûÀàÐÍ£º
CHAR(size)£º¹Ì¶¨³¤¶È×Ö·û´®£¬×î´ó³¤¶È2000 bytes
VARCHAR2(size)£º¿É±ä³¤¶ÈµÄ×Ö·û´®£¬×î´ó³¤¶È4000 bytes£¬¿É×öË÷ÒýµÄ×î´ó³¤¶È749
NCHAR(size)£º¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¹Ì¶¨³¤¶È×Ö·û´®£¬×î´ó³¤¶È2000 bytes
NVARCHAR2(size)£º¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¿É±ä³¤¶È×Ö·û´®£¬×î´ó³¤¶È4000 byte
LONG£º±ä³¤µÄ×Ö·û´®£¬×î´ó³¤¶ÈÏÞÖÆÊÇ2GB
CLOB£º×î´ó³¤¶È4G
NCLOB£º¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ×Ö·ûÊý¾Ý£¬×î´ó³¤¶È4G
ÊýÖµÀàÐÍ
NUMBER(p,s)
·¶Î§£º 1 <= p <=38, -84 <= s <= 127
±£´æÊý¾Ý·¶Î§£º-1.0e-130 <= number value < 1.0e+126 £¿£¿
ÓÐЧλ£º´Ó×ó±ßµÚÒ»¸ö²»Îª0µÄÊýËãÆðµÄλÊý
S>0£¬¾«È·µ½Ð¡ÊýµãÓÒ±ßs룬²¢ËÄÉáÎåÈ롣Ȼºó¼ìÑéÓÐЧλÊÇ·ñ<=p
Eg:198.34 ànumber(6,1)à198.3,
198.34ànumber(3,1)àerror
S<0£¬¾«È·µ½Ð¡Êýµã×ó±ßs룬²¢ËÄÉáÎåÈ롣Ȼºó¼ìÑéÓÐЧλÊÇ·ñ<=p+|s|
Eg:198.34ànumber(6,-1)à200
19834567.34ànumber(6,-1)àerror(ÓÐЧλ8>6+1)
S=0£¬number±íʾÕûÊý
Oracle 10gÒÔÇ°£º
Ö»ÓÐNUMBERÀ´±íʾËùÓеÄÊýÖµÀàÐÍ
Oracle 10gÒԺ󣨰üº¬10g£©£º
Ôö¼ÓÁ˵ÄÊýÖµÀàÐÍ£º
BINARY_FLOAT Õ¼ÓÃ5bytes, 4bytes´æ·Å¸¡µãÊý£¬ÁíÍâ1byte´æ·Å6λµÄ¾«¶È¡£
BINARY_DOUBLE Õ¼ÓÃ9bytes£¬8bytes´æ·Å¸¡µãÊý£¬ÁíÍâ1byte´æ·Å13λ¾«¶È
NUMBER´æ·ÅµÄÊýÖµ¸ü¾«È·£¬µ«BINARY_FLOAT, BINARY_DOUBLE´æ·ÅµÄÊýÖµ¸ü´ó¡£BINARY_FOAT, BINARY_DOUBLE½øÐÐÊýÖµÔËËãʱµÄËٶȱÈNUMBER¿ì¡£
ÈÕÆÚÀàÐÍ
DATE:
±£´æ¶¨³¤µÄÈÕÆÚ»òʱ¼äÊý¾Ý£¬·¶Î§Îª¹«ÔªÇ°4712/01/01µ½¹«Ôª9999/12/31ÈÕÆÚ£¬³¤¶ÈÊÇ7¸ö×Ö½Ú£¬·Ö±ð±íʾÊÀ¼Í¡¢Äê¡¢Ô¡¢ÈÕ¡¢Ê±¡¢·Ö
ºÍÃ룬ÿһ¸ö×Ö½Ú¶¼²»ÔÊÐí³öÏÖ0µÄÇé¿ö£¬¼´Ê¹ÊÇʱ·ÖÃ룬ҲÊÇ»áÔÚ0µÄ»ù´¡ÉϼÓ1À´´æ´¢¡£ÊÀ¼ÍºÍÄê·Ý´æ´¢µÄʱºòÊÇÔÚÔÀ´µÄ»ù´¡ÉϼÓ100£¬ÒÔ±ÜÃâ0µÄÇé¿ö¡£
TIMESTAMP:
ÓëDATEÀàÐÍÏà±È£¬¾ÍÊǶàÁËÒ»¸ö΢ÃëÖµ£¬Èç¹û΢ÃîֵΪ0£¬ÄÇôºÍDATEÊÇÒ»ÑùµÄ¡£Èç¹û°üº¬Î¢ÃîÖµ£¬TIMESTAMPµÄ³¤¶ÈÊÇ11λ¡£(»¹¿ÉÒÔ¼ÓÉÏʱÇø½øÐд洢)
¶þ½øÖÆÊý¾ÝÀàÐÍ
BLOB£º×î´ó³¤¶È4G
RAW £º¿É±ä³¤¶ÈµÄ¶þ½øÖÆÊý¾Ý£¬×î´ó³¤¶È2000 ×Ö½Ú
LONG RAW£º¿É±ä³¤¶ÈµÄ¶þ½øÖÆÊý¾Ý£¬×î´ó³¤¶È2G
BFILE£º´æ·ÅÔÚÊý¾Ý¿âÍâµÄ¶þ½
Ïà¹ØÎĵµ£º
BODY { color: #000000; font-size: 9pt; font-family: ËÎÌå }
TABLE { font-size: 9pt; font-family: ËÎÌå }
SimpleDateFormat sdfy = new SimpleDateFormat("HH:mm");
String tt =
"Tue Feb 09 10:43:00 CST 2010";
&n ......
javaͬһÓû§µÇ¼ÎÊÌâ
1.ÉϸöÔÂÒ²ÓÐÌÖÂÛÕâ¸öÎÊÌâµÄ,ÓкöàÈ˶¼·¢±íÁËÒâ¼û,µ«Ò²Ã»Óбê×¼µÄ´ð°¸
ÎÒ¿´µ½Ò»¸ö,:½«SEssionID´æÈëDBÖÐ,µ±ÄãµÇ¼ʱ,Åжϵ±Ç°µÄSEssionIDºÍDB
ÀïÊDz»ÊÇͬһ¸ö,Èç¹û²»ÊÇ,˵Ã÷ÊǵڶþÈ˵ǼÁË,ÄǾͽ«DBÀïµÄSESSIONID×¢Ïú
È»ºóÔÙ´¦ÀíµÚ¶þ¸öµÇ¼.
2.ÔÚContextÖн¨Á¢Ò»¸öMap <String,Sission>,´ ......
6 ¼ÓÔØÒ³ÃæµÄW3C DOM·ÃÎÊ
6.1 mozdom4java¿â
·ÃÎÊW3C DOMÊ÷±È·ÃÎÊMozillaµÄDOMÊ÷ÒªºÃ£¬ÒòΪËüÊÇÒ»¸ö¶¯Ì¬·ÃÎÊHTMLºÍXMLµÄDOMÊ÷µÄ±ê×¼¡£ÎªÁËʵÏÖÕâ¸ö£¬ÎÒÃÇʹÓôÓMozilla
DOMµ½W3C DOMµÄjava Bridge¡£ÓÐÒ»¸ö½Ð×ömozdom4javaµÄÏîÄ¿http://mozdom4java.mozdev.org/index.html¡£
ÏÂÔØÕâ¸ö°üºó£¬ÎÒÃÇ°Ñjar°ü·Å ......
BorderLayout
FlowLayout
GridLayout
GridBagLayout
CardLayout
BoxLayout
< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
......
1£©´ÓʹÓÃÉÏÀ´Ëµ£¬oci±ØÐëÔÚ¿Í»§»úÉÏ°²×°oracle¿Í»§¶Ë»ò²ÅÄÜÁ¬½Ó£¬¶øthin¾Í²»ÐèÒª£¬Òò´Ë´ÓʹÓÃÉÏÀ´½²thin»¹ÊǸü¼Ó·½±ã£¬ÕâÒ²ÊÇthin±È½Ï³£¼ûµÄÔÒò¡£
2£©ÔÀíÉÏÀ´¿´£¬thinÊÇ´¿javaʵÏÖtcp/ipµÄc/sͨѶ£»¶øoci·½Ê½,¿Í»§¶Ëͨ¹ýnative java methodµ÷ÓÃc library·ÃÎÊ·þÎñ¶Ë£¬¶øÕâ¸öc library¾ÍÊÇoci(oracle called interface ......