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

java¶àÏ̱߳£´æoracleµÄblob×Ö¶ÎÔÚ±¾µØÉú³ÉͼÏñ

ǰЩÈÕ×ÓÕÛÌÚµÄÔÚÏßÅÄÕÕ£¬ÓÉÓÚÖ»ÊǸüÐÂblob×ֶΣ¬Ã»ÓÐÔÚ±¾µØ±£´æÕÕƬ£¬µ¼Ö¿ͻ§ÅÄÄÔÃÅÏëÒªµÄʱºò²»ÄÜÂíÉÏÄóöÀ´¡£Ã»ËµµÄË­Èù˿ÍÊÇÉϵÛÄØ£¬×ö°É¡£Ê¹ÓÃÏ̳߳ش´½¨Èý¸öÏß³ÌÈÃ×Ô¶¨Ò»¸öÏß³ÌÄ¿±ê¹²Ïí£¨Ò²¾ÍÊǰѱíÀïµÄ¼Ç¼·Ö³Én×éͬʱִÐе¼³ö£©¡£³ÌÐòºÜ¼òµ¥£¬Ò»¹²ËĸöÀàºÍÒ»¸öojdbc14.jar°ü¡£ÓÉÓÚsqlÓï¾äд´íÁËÔì³É¶à¸öÏ̶߳ÔÒ»¸öÎļþ½øÐÐд²Ù×÷£¬º¦µÄÎÒ²éÁË°ëÌì¡£
Ê×Ïȶ¨Òå·ÖÒ³¶ÔÏóÒ²¾ÍÊÇÿ¸öÏß³ÌÒª´¦ÀíµÄÊý¾ÝÁ¿£¨Í¨¹ý´«ÈëµÄ×ÜÒ³ÊýºÍ×ÜÐÐÊýµÃµ½Ã¿Ò³ÊýÁ¿£©
package com.main;
import java.util.ArrayList;
import java.util.List;
public class PageVO {
 private String startRowNum;//·µ»Ø²éѯµÄÆðʼÐÐ
 private String endRowNum;//·µ»Ø²éѯµÄÖÕÖ¹ÐÐ
 private int totalRows; //  Êý¾Ý²éѯ×ܼǼÊý
 private int totalPages; // ·Ö³ÉÒ³Êý
 private int pageRows;//ÿҳÐÐÊý
 public PageVO(){
 }
 public PageVO(int totalRows,int totalPages){
  this.totalPages = totalPages;
  this.totalRows = totalRows;
 }
 public PageVO(String startNum,String endNum){
  this.startRowNum = startNum;
  this.endRowNum = endNum;
 }
 public String getStartRowNum() {
  return startRowNum;
 }
 public void setStartRowNum(String startRowNum) {
  this.startRowNum = startRowNum;
 }
 public String getEndRowNum() {
  return endRowNum;
 }
 public void setEndRowNum(String endRowNum) {
  this.endRowNum = endRowNum;
 }
 public List<PageVO> getPageVOList(){
  List<PageVO> list = new ArrayList<PageVO>();
  pageRows = totalRows/totalPages;
  int currentRow = 1;//¶¨ÒåÆðʼֵ
  for (int i = 0; i<totalPages; i ++){
   list.add(new PageVO(new Integer(currentRow).toString(),new Integer(pageRows + currentRow).toString()));
   currentRow = currentRow + pageRows + 1;
  }
  return list;
 } 
}
Æä´Î»ñµÃconnectionÀà
package com.main;
impo


Ïà¹ØÎĵµ£º

java ʵÏÖÏÂÔع¦ÄÜ

/**
* ÏÂÔØÎļþ
* @param filePath --ÎļþÍêÕû·¾¶
* @param response --HttpServletResponse¶ÔÏó
*/
public static void downloadFile(
String filePath,
javax.servlet.http.HttpServletResponse response) {
String fileName = ""; //ÎļþÃû£¬Êä³öµ½Óû§µÄÏÂÔضԻ°¿ò
//´ÓÎļþÍêÕû·¾¶ÖÐÌáÈ¡ÎļþÃû£¬²¢½øÐбà ......

Oracle SQL ÓÅ»¯

Oracle
SQL
µÄÓÅ»¯¹æ
Ôò£º
¾¡Á¿ÉÙÓÃIN²Ù×÷·û£¬»ù±¾ÉÏËùÓеÄIN²Ù×÷·û¶¼¿ÉÒÔÓÃEXISTS´úÌæ
        ÓÃINд³öÀ´µÄSQL
µÄÓŵãÊDZȽÏÈÝÒ×д¼°ÇåÎúÒ׶®£¬µ«ÊÇÓÃINµÄSQL
ÐÔÄÜ×ÜÊDZȽϵ͵ģ¬´ÓORACLE
Ö´
ÐеIJ½ÖèÀ´·ÖÎöÓÃINµÄSQL
Óë²»ÓÃINµÄSQL
ÓÐ
ÒÔÏÂÇø±ð£º
    ......

OracleÖÐÓÅ»¯SQLµÄÔ­Ôò

.Frm644 { display:none; }
¡¡¡¡1¡£ÒѾ­¼ìÑéµÄÓï¾äºÍÒÑÔÚ¹²Ïí³ØÖеÄÓï¾äÖ®¼äÒªÍêÈ«Ò»Ñù
¡¡¡¡2¡£±äÁ¿Ãû³Æ¾¡Á¿Ò»ÖÂ
¡¡¡¡3¡£ºÏÀíʹÓÃÍâÁª½Ó
¡¡¡¡4¡£ÉÙ
Óöà²ãǶÌ×
¡¡¡¡5¡£¶àÓò¢·¢
¡¡¡¡
¡¡¡¡Óï¾äµÄÓÅ»¯²½ÖèÒ»°ãÓУº
¡¡¡¡1¡£µ÷ÕûsgaÇø£¬Ê¹µÃsgaÇøµÄÊÇÓÃ×îÓÅ¡£
¡¡
¡¡2¡£sqlÓï¾ä±¾ÉíµÄÓÅ»¯£¬¹¤¾ßÓÐexplain,sql trace ......

Java×ÔѧС½á——2

×î½üÓ¦ÀÏʦµÄÒªÇó¿´ÁËÊý¾Ý¿â¡£ÔÚÍøÉÏÕÒÁËÊÓƵ£¬ÊǸö½ÌÓý»ú¹¹·¢µÄ¡£ÄǸöÊÓƵ¿´µÃÎÒÖ±·¸À§£¬³ýÁËÀÏʦ½²¿Î½²´íµÄʱºò¡£
ÊÓƵ½²µÃºÜdzÏÔ£¬µÚÒ»Õ½²ÁËsqlÊý¾Ý¿â½á¹¹£¬ÓÐʲôģÐÍ¡£½Ó׎²Ö÷¼ü£¬Íâ¼ü£¬È»ºóÊǽ¨±íÓï¾ä£¬²éѯÓï¾äµÈµÈ¡£
show databases ÏÔʾÊý¾Ý¿â¡£
use ** ʹÓÃÊý¾Ý¿â¡£
create table ** (**,**,**) ½¨±í¡£
se ......

JAVA WebServiceʵÀý

Ò»¡¢Axis°²×° 1¡¢»·¾³ J2SE SDK 1.5 or 1.6: ÎÒʹÓà 1.6 Servlet Container: ÎÒʹÓõÄTomcat 6.0
2¡¢µ½ http://ws.apache.org/Axis/ÍøÕ¾ÏÂÔØAxis°²×°°ü
3¡¢ÏÈÔÚeclipseÏÂн¨web projectΪWebServiceDemo.ÔÚTomcatµÄÅäÖÃxmlÅäÖÃÉÏ£º<Context path="/webservice" docBase="D:\workspace\WebServiceDemo\WebRoot"/>. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ