Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÀûÓÃJAVAÏòOracleÊý¾Ý¿âÖвåÈë´ó¶ÔÏó

ͨ¹ýJDBC£¬ÎÒÃÇ¿ÉÒÔÏòoracle²åÈë´ó¶ÔÏó£¬ÈçͼƬ£¬ÒôƵ£¬³¤Îı¾µÈ£¬Æä²åÈë·½·¨Óкܶ࣬ÕâÀïÑÝʾһÏÂͨ¹ýÁ÷¸üиüеÄÐÎʽ²åÈëCLOB´ó¶ÔÏó¡£
ÕâÊÇÒ»¸ö´æ´¢Îı¾µÄÀý×Ó£¬½âÊÍÎÒ»áÔÚ³ÌÐòÖÐÒÔ×¢Ê͵ÄÐÎʽд³ö
/**
  * ½«Éú³ÉµÄ±íÑù´æ´¢µ½Êý¾Ý¿â
  *
  * @param htmlParam
  * @return
  */
 public static boolean addToDB(HtmlParam htmlParam) {
 
//´Ë´¦¶¨ÒåÊý¾Ý¿â²Ù×÷ʱʹÓõĶÔÏó
  Connection conn = null;
  //Óë²éѯ²Ù×÷Ôڴ˺¯ÊýÖжà´ÎʹÓÃ
  PreparedStatement stmt = null;
  ResultSet rs = null;
  //ORACLEÖеĴó¶ÔÏó
  CLOB clob = null;
//дÈë´ó¶ÔÏóËùÐèµÄÁ÷
  Writer write = null;
  try {
   // jdbcÁ¬½ÓÊý¾Ý¿â²ÎÊý
   Class.forName("oracle.jdbc.driver.OracleDriver");
   String url = "jdbc:oracle:thin:@192.168.1.210:1521:moe210";
   conn = DriverManager.getConnection(url, "tjdemo", "tjdemo");
   // ÏȲåÈëÏàÓ¦µÄÊý¾Ý
   String sql = "insert into html_demo values(SEQ_HTML.nextval, ?, ?, ?, ?, ?, ?, ?, empty_clob(), ?)";
   //×¢ÒâÉÏÒ»¾ä²åÈëµÄÊÇÒ»¸ö¿ÕµÄ´ó¶ÔÏó empty_clob(),£¬¼´Ã»ÓÐÏò´ó¶ÔÏóÖвåÈëÈκÎÊý¾Ý
   
   stmt = conn.prepareStatement(sql);
   stmt.setInt(1, htmlParam.getProjectId());
   stmt.setString(2, htmlParam.getReptName());
   stmt.setInt(3, htmlParam.getStartRow());
   stmt.setInt(4, htmlParam.getStartColumn());
   stmt.setInt(5, htmlParam.getEndRow());
   stmt.setInt(6, htmlParam.getEndColumn());
   stmt.setString(7, htmlParam.getCharset());
   stmt.setString(8, htmlParam.getPath());
   stmt.executeUpdate();
   // ²éѯµ±Ç°sequenceÖµ£¬¼´²éѯ¸Õ¸Õ²åÈëµ½Êý¾Ý¿âÖеÄ×ֶεÄid
   String seq = "select SEQ_HTML.currval from dual";
   stmt = conn.prepareStatemen


Ïà¹ØÎĵµ£º

oracle´´½¨±í¿Õ¼ä¡¢Óû§¡¢ÊÚȨ


//´´½¨Êý¾Ý±í¿Õ¼ä
create tablespace zfmi logging datafile 'D:\oracle\oradata\zfmi\zfmi.dbf' size 100m autoextend on next 32m maxsize 2048m extent management local;
//´´½¨Óû§²¢Ö¸¶¨±í¿Õ¼ä
create user zfmi identified by zfmi default tablespace zfmi temporary tablespace zfmi_temp;
//¸øÓû§ÊÚÓèÈ¨Ï ......

Oracle²åÈëÊý¾Ýʱ»ñÈ¡×ÔÔöID

×ÔÔö×ֶΣº
±íatable(id,a) idÐèÒª×ÔÔö Ê×ÏȽ¨Á¢Ò»¸öÐòÁУº
create sequence seq_atable minvalue 1 maxvalue 999999999999999999 start with 1 increment by 1 nocache
ÓжþÖÖ·½Ê½Ê¹ÓÃ×ÔÔö×ֶΣº
ʹÓÃÐòÁÐ+´¥·¢Æ÷ʵÏÖ×ÔÔö£¬²åÈëÓï¾ä²»ÐèÒª¹Ü×ÔÔö×Ö¶Î
È磺create or replace trigger trg_atable before insert on ......

Google App Engine Java SDK 1.3.3 ÖØ´óbug

Èç¹ûÄãÉý¼¶µ½ÁË1.3.3£¬²¢ÇÒdeployÁËа汾µÄÓ¦Ó㬻ᷢÏÖ
Error: Not Found
The requested URL /login
was not found on this server.
ºÜ±¯¾ç£¬Ô­ÒòÓëfilterÉèÖÃÓйأ¨ºÍ³ÌÐòÎ޹أ¬ÊÇsdkµÄÎÊÌ⣩£¬issueÒѾ­ÓÐÁË¡£
½â¾ö°ì·¨£º
Éý¼¶µ½1.3.3.1£¬ÏÂÔصØÖ·
ÓÃec²å¼þÈÔÈ»ÎÞ·¨¸üУ¬ÏÂÔØsdk½âѹµ½X:\eclipse\plugins\com. ......

java±ÊÊÔÌâ×ܽáÓë´ó¼Ò·ÖÏí

javaÊÔÌâ
http://202.201.112.11/jpk/apply/teacher/preface/53/test123/test3/exam.htm
1.½Ó¿ÚÖз½·¨µÄÇ°ÃæÓÐÄÄЩÐÞÊηû
 ·ÃÎÊȨÏÞ ·µ»ØÖµÀàÐÍ ÊÇ·ñ¾²Ì¬ ÊÇ·ñ³éÏó
2.ÒÔÏÂÄĸöΪÕæ
  Interger a = new Interger(9);
  Interger b = new Interger(9);
  Long c = New Long(9)
-----
&nbs ......

ʹÓà Java Éú³É MD5 ±àÂë

MD5¼´Message-Digest Algorithm 5£¨ÐÅÏ¢-ÕªÒªËã·¨5£©£¬ÊÇÒ»ÖÖÓÃÓÚ²úÉúÊý×ÖÇ©ÃûµÄµ¥ÏîÉ¢ÁÐËã·¨£¬ÔÚ1991ÄêÓÉMIT Laboratory for Computer Science£¨IT¼ÆËã»ú¿ÆѧʵÑéÊÒ£©ºÍRSA Data Security Inc£¨RSAÊý¾Ý°²È«¹«Ë¾£©µÄRonald L. Rivest½ÌÊÚ¿ª·¢³öÀ´£¬¾­ÓÉMD2¡¢MD3ºÍMD4·¢Õ¹¶øÀ´¡£MD5Ëã·¨µÄʹÓò»ÐèÒªÖ§¸¶ÈκΰæȨ·ÑÓá£ËüµÄ×÷ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ