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

javaÖÐʹÓÃibatisÀ´µ÷Óô洢¹ý³Ì(ÉÏ)

ÎÒÃÇÔÚ½øÐÐpl/sql±à³Ìʱ´ò½»µÀ×î¶àµÄ¾ÍÊÇ´æ´¢¹ý³ÌÁË¡£´æ´¢¹ý³ÌµÄ½á¹¹ÊǷdz£µÄ¼òµ¥µÄ£¬ÎÒÃÇÔÚÕâÀï³ýÁËѧϰ´æ´¢¹ý³ÌµÄ»ù±¾½á¹¹Í⣬»¹»áѧϰ±àд´æ´¢¹ý³ÌʱÏà¹ØµÄһЩʵÓõÄ֪ʶ¡£È磺ÓαêµÄ´¦Àí£¬Òì³£µÄ´¦Àí£¬¼¯ºÏµÄÑ¡ÔñµÈµÈ
1.´æ´¢¹ý³Ì½á¹¹
1.1 µÚÒ»¸ö´æ´¢¹ý³Ì
create or replace procedure proc1(   
   p_para1 varchar2,   
   p_para2 out varchar2,   
   p_para3 in out varchar2   
)as   
v_name varchar2(20);   
begin   
   v_name := 'ÕÅÈý·á';   
   p_para3 := v_name;   
   dbms_output.put_line('p_para3:'||p_para3);   
end;  
create or replace procedure proc1(
p_para1 varchar2,
p_para2 out varchar2,
p_para3 in out varchar2
)as
v_name varchar2(20);
begin
v_name := 'ÕÅÈý·á';
p_para3 := v_name;
dbms_output.put_line('p_para3:'||p_para3);
end;
ÉÏÃæ¾ÍÊÇÒ»¸ö×î¼òµ¥µÄ´æ´¢¹ý³Ì¡£Ò»¸ö´æ´¢¹ý³Ì´óÌå·ÖΪÕâô¼¸¸ö²¿·Ö:
´´½¨Óï¾ä£ºcreate or replace procedure ´æ´¢¹ý³ÌÃû
Èç¹ûûÓÐor replaceÓï¾ä£¬Ôò½ö½öÊÇн¨Ò»¸ö´æ´¢¹ý³Ì¡£Èç¹ûϵͳ´æÔڸô洢¹ý³Ì£¬Ôò»á±¨´í¡£Create or replace procedure Èç¹ûϵͳÖÐûÓд˴洢¹ý³Ì¾Íн¨Ò»¸ö£¬Èç¹ûϵͳÖÐÓд˴洢¹ý³ÌÔò°ÑÔ­À´É¾³ýµô£¬ÖØд´½¨Ò»¸ö´æ´¢¹ý³Ì¡£
´æ´¢¹ý³ÌÃû¶¨Ò壺°üÀ¨´æ´¢¹ý³ÌÃûºÍ²ÎÊýÁÐ±í¡£²ÎÊýÃûºÍ²ÎÊýÀàÐÍ¡£²ÎÊýÃû²»ÄÜÖظ´£¬ ²ÎÊý´«µÝ·½Ê½:IN, OUT, IN OUT
IN ±íʾÊäÈë²ÎÊý£¬°´Öµ´«µÝ·½Ê½¡£
OUT ±íʾÊä³ö²ÎÊý£¬¿ÉÒÔÀí½âΪ°´ÒýÓô«µÝ·½Ê½¡£¿ÉÒÔ×÷Ϊ´æ´¢¹ý³ÌµÄÊä³ö½á¹û£¬¹©Íⲿµ÷ÓÃÕßʹÓá£
IN OUT ¼´¿É×÷ÊäÈë²ÎÊý£¬Ò²¿É×÷Êä³ö²ÎÊý¡£
²ÎÊýµÄÊý¾ÝÀàÐÍÖ»ÐèÒªÖ¸Ã÷ÀàÐÍÃû¼´¿É£¬²»ÐèÒªÖ¸¶¨¿í¶È¡£
²ÎÊýµÄ¿í¶ÈÓÉÍⲿµ÷ÓÃÕß¾ö¶¨¡£
¹ý³Ì¿ÉÒÔÓвÎÊý£¬Ò²¿ÉÒÔûÓвÎÊý
±äÁ¿ÉùÃ÷¿é£º½ô¸ú×ŵÄas (is )¹Ø¼ü×Ö£¬¿ÉÒÔÀí½âΪpl/sqlµÄdeclare¹Ø¼ü×Ö£¬ÓÃÓÚÉùÃ÷±äÁ¿¡£
±äÁ¿ÉùÃ÷¿éÓÃÓÚÉùÃ÷¸Ã´æ´¢¹ý³ÌÐèÒªÓõ½µÄ±äÁ¿£¬ËüµÄ×÷ÓÃÓòΪ¸Ã´æ´¢¹ý³Ì¡£ÁíÍâÕâÀïÉùÃ÷µÄ±äÁ¿±ØÐëÖ¸¶¨¿í¶È¡£×ñÑ­PL/SQLµÄ±äÁ¿ÉùÃ÷¹æ·¶¡£
¹ý³ÌÓï¾ä¿é£º´Óbegin ¹Ø¼ü×Ö¿ªÊ¼Îª¹ý³ÌµÄÓï¾ä¿é¡£´æ´¢¹ý³ÌµÄ¾ßÌåÂß¼­ÔÚÕâÀïÀ´ÊµÏÖ¡£
Òì³£´¦Àí¿é£º¹Ø¼ü×ÖΪexception £¬Îª


Ïà¹ØÎĵµ£º

ÉúƽµÚÒ»¶Î¹æ·¶Java´úÂë

ÏÂÃæÕâ¶Î´úÂëÊǾ­¹ý´úÂë·ÖÎö¹¤¾ßRational Software Analyser ·ÖÎö¹ýµÄ£¬¸Ã¹¤¾ß¹ØÓÚJavaµÄ¹æÔòÄ¿Ç°ÊÇ541Ìõ£¬ÊµÊô¿Á¿Ì¡£Ð´¶Î¹æ·¶µãµÄJava´úÂëÈÝÒ×ô£¡
/**
 *
 * @author zhp
 *
 * @version 1.0
 */
package com.rsar;
import java.util.Date;
/**
 *
 * @author zhp
  ......

Java°æµÄdatediff

¡¡¡¡MSSQLÖÐÌṩÁ˸ödatediffº¯ÊýÓÃÀ´¶ÔÁ½¸öʱ¼ä½øÐмõ·¨²Ù×÷£¬µ«ÔÚJavaÖÐȴûÓУ¬Èç¹ûÎÒÃÇÏëÖªµÀÁ½¸öÈÕÆÚ¼äÏà¸ôÁ˶àÉÙÌ죬»òÊÇÏà¸ôÁ˶àÉÙ¸öСʱÔòÒªÊÖ¹¤¼ÆËã¡£ÏÂÃæ´úÂëÄ£·ÂMSSQLµÄdatediffº¯ÊýÌṩÁËʹÓò»Í¬Ê±¼ä¼ä¸ôÀ´¼ÆËãÁ½¸öʱ¼äÏà²îµÄʱ¼ä¼ä¸ôµÄÊýÄ¿£¬±ÈÈçtimeIntervalΪdayÔò·µ»ØÏà²îµÄÌìÊý£¬ÎªmonthÔò·µ»ØÏà²îµÄÔÂÊý ......

¶Á¡¶JAVAÐÂÊÖͨ²¡¡·

Ò»¡¢Ëã·¨ºÍÊý¾Ý½á¹¹
¡ïʲôʱºò¸ÃÓÃÊý×éÐÍÈÝÆ÷¡¢Ê²Ã´Ê±ºò¸ÃÓÃÁ´±íÐÍÈÝÆ÷£¿
¡ïʲôÊÇÉ¢Áк¯Êý£¿HashMapµÄʵÏÖÔ­ÀíÊÇʲô£¿
¡ïʲôÊǵݹ飿Èç¹ûÄãÒÔÇ°´ÓÀ´Ã»Ð´¹ýµÝ¹éº¯Êý£¬³¢ÊÔ×Åдһ¸ö£¨±ÈÈçÓõݹ麯Êý½øÐÐĿ¼Ê÷±éÀú£©¡£
¡ïʲôÊÇËã·¨¸´ÔӶȣ¿
¡ïÄãÊÇ·ñÀí½â¿Õ¼ä»»Ê±¼äµÄ˼Ï룿
¡ïдһ¸öÕë¶ÔÕûÊýÊý×éµÄðÅÝÅÅÐòº¯Êý£¬¿ ......

java swing ×é¼þ

JCheckBox: 
        ¸´Ñ¡¿ò;
JComboBox:
       ÏÂÀ­Áбí;
JTextField:
         ÔÊÐí±à¼­µ¥ÐÐÎı¾;
JTextArea: 
        ÔÊÐí±à¼­µÄ¶àÐÐÎı¾ÇøÓò;
JTextPa ......

java+Access( javaÊý¾Ý¿â±à³Ì£©

1£ºÏȶÔһЩ¸ÅÄîµÄÀí½â£º
JDBC£ºJava DataBase Connection
±¾¼¾Ä¿±ê
1¡¢JDBCµÄ·ÖÀà
2¡¢JDBCµÄÖ÷Òª²Ù×÷ÀàºÍ½Ó¿Ú£º
DriverManager¡¢Connection¡¢Statement¡¢PreparedStatement¡¢ResultSet
3¡¢ÈçºÎʹÓÃJDBCÁ¬½ÓMySQLÊý¾Ý¿â
www.mldn.cnÉÏÓÐMYSQLµÄ½Ì³Ì¡£
1¡¢Ê²Ã´ÊÇJDBC£¿
JDBCÊÇJAVAÌṩµÄÒ»¸ö·þÎñ£¬×¨ÃÅÓÃÓÚ·ÃÎÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ