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

ÓÃC££¡¢JAVAÒ»´ÎÐÔÈ¡³ö´æ´¢¹ý³ÌÖеĸ÷ÖÖ·µ»ØÖµ

ÎÊÌ⣺ÔÚ´æ´¢¹ý³ÌÖУ¬ÓÐʱ»áÓöµ½±È½Ï±ä̬µÄ¶«Î÷£¬ÈçÒ»¸ö´æ´¢¹ý³ÌÖÐÓÐoutput·µ»ØÖµ£¬ÓÐreturn·µ»ØÖµ£¬»¹ÓвéѯµÄ·µ»ØÖµTABLE£¬Óöµ½ÕâÑùµÄ´æ´¢¹ý³ÌÕæÊÇÓôÃÆ£¬Ò»´ÎÐÔ°ÑËùÓеķµ»Øֵȡ³öÀ´»¹ÕæµÄÓеãÂé·³¡£
 
 
1¡¢  Ê×ÏÈÀ´¿´Õâ¸ö´æ´¢¹ý³Ì°É
 
CREATE  PROCEDURE ParaTest
@paraout varchar(20) output
AS
BEGIN
   SET NOCOUNT ON
   SELECT * from USERS
   SELECT @paraout = 'outputvalue'  
   RETURN 10
END
 
ΪÁË·½±ã´ó¼Ò¿´µÃ¸ü¼ÓÇåÇå³þ³þ£¬ÎÒÒѾ­½«Êý¾Ý¸³ÖµÐ´µÃºÜÖ±¹ÛµÄÁË¡£USERSÊÇÒ»¸ö±í
ÔÚsqlÖÐҪȡµÃÕâ¸ö´æ´¢¹ý³ÌµÄ·µ»ØÖµ¿ÉÒÔÓÃÒÔÏ·½Ê½
 
DECLARE @paraoutput varchar(20)
DECLARE @parareturn varchar(20)
EXEC @parareturn= ParaTest @paraout = @paraoutput output
SELECT @paraoutput AS 'output',@parareturn AS 'return'
 
½á¹ûÈçÏÂ
 
 
 
 
2¡¢  ÓÃC££È¡µÃ·µ»ØÖµµÄ·½·¨ÈçÏ£¨²»×ö½âÊÍÁË£¬ºÜ¼òµ¥µÄ£©
         string stroutput = "";
            string strreturn = "";
            string conStr = "Server=.;DataBase=Test;Uid=sa;Pwd=";           
            SqlConnection conn = new SqlConnection(conStr);
            conn.Open();          
            SqlCommand cmd = new SqlCommand("ParaTest",conn);
            cmd.CommandType = CommandType.StoredProcedure;
            SqlParameter spa = new SqlParameter("@paraout",SqlDbType.VarChar,20);
            spa.Direction = ParameterDirection.Output;
&n


Ïà¹ØÎĵµ£º

¡¾×ª¡¿CÓëC++µÄÇø±ð

Ôںܴó³Ì¶ÈÉÏ,±ê×¼C++ÊDZê×¼CµÄ³¬¼¯.ʵ¼ÊÉÏ,ËùÓÐC³ÌÐòÒ²ÊÇC++³ÌÐò,È»¶ø,Á½ÕßÖ®¼äÓÐÉÙÁ¿Çø±ð.ÏÂÃæ¼òÒª½éÉÜÒ»ÏÂ×îÖØÒªµÄÇø±ð.
    ÔÚC++ÖÐ,Ãñ,¾Ö²¿±äÁ¿¿ÉÒÔÔÚÒ»¸ö³ÌÐò¿éÄÚÔÚÈκεط½ÉùÃ÷,ÔÚCÖÐ,¾Ö²¿±äÁ¿±ØÐëÔÚ³ÌÐò¿éµÄ¿ªÊ¼²¿·Ö,¼´ÔÚËùÓÐ"²Ù×÷"Óï¾ä֮ǰÉùÃ÷,Çë×¢Òâ,C99±ê×¼ÖÐÈ¡ÏûÁËÕâÖÖÏÞÖÆ.
  &nb ......

extern cµÄ×÷ÓÃ

extern cµÄ×÷Óá¾×ª¡¿
2009-12-18 13:10
1.ÒýÑÔ
C++ÓïÑԵĴ´½¨³õÖÔÊÇ“a better C”£¬µ«ÊÇÕâ²¢²»Òâζ×ÅC++ÖÐÀàËÆCÓïÑÔµÄÈ«¾Ö±äÁ¿ºÍº¯ÊýËù²ÉÓõıàÒëºÍÁ¬½Ó·½Ê½ÓëCÓïÑÔÍêÈ«Ïàͬ¡£×÷ΪһÖÖÓûÓëC¼æÈݵÄÓïÑÔ£¬C++±£ÁôÁËÒ»²¿·Ö¹ý³Ì ʽÓïÑÔµÄÌص㣨±»ÊÀÈ˳ÆΪ“²»³¹µ×µØÃæÏò¶ÔÏ󔣩£¬Òò¶øËü¿ÉÒÔ¶¨Òå²»ÊôÓ ......

javaѧϰ˳Ðò

½áºÏ±¾ÈËѧϰ¾­ÑéºÍÍøÉÏÅàѵ»ú¹¹µÄ×ÊÁÏ£¬ÁгöjavaѧϰµÄ˳Ðò¡£
Ò»£ºJ2SE
¡ðÃæÏò¶ÔÏó£­·â×°¡¢¼Ì³Ð¡¢¶à̬
¡ðÄÚ´æµÄ·ÖÎö
¡ðµÝ¹é
¡ð¼¯ºÏÀà¡¢·ºÐÍ¡¢×Ô¶¯´ò°üÓë½â°ü¡¢Annotation
¡ðIO
¡ð¶àÏ̡߳¢Ïß³Ìͬ²½
¡ðTCP/UDP
¡ðAWT¡¢Ê¼þÄ£ÐÍ¡¢ÄäÃûÀà
¡ðÕýÔò±í´ïʽ
¡ð·´Éä»úÖÆ
2£ºÊý¾Ý¿â£¨Oracle»òÕßMySQL£©
¡ðSQLÓï¾ä ......

¡¾×ª¡¿ÓÅÐãJava³ÌÐòÔ±±ØÐëÁ˽âµÄGC¹¤×÷Ô­Àí

Ò»¸öÓÅÐãµÄJava³ÌÐòÔ±±ØÐëÁ˽âGCµÄ¹¤×÷Ô­Àí¡¢ÈçºÎÓÅ»¯GCµÄÐÔÄÜ¡¢ÈçºÎÓëGC½øÐÐÓÐÏ޵Ľ»»¥£¬ÒòΪÓÐһЩӦÓóÌÐò¶ÔÐÔÄÜÒªÇó½Ï¸ß£¬ÀýÈçǶÈëʽϵͳ¡¢ÊµÊ±ÏµÍ³µÈ£¬Ö»ÓÐÈ«ÃæÌáÉýÄÚ´æµÄ¹ÜÀíЧÂÊ £¬²ÅÄÜÌá¸ßÕû¸öÓ¦ÓóÌÐòµÄÐÔÄÜ¡£±¾ÆªÎÄÕÂÊ×Ïȼòµ¥½éÉÜGCµÄ¹¤×÷Ô­ÀíÖ®ºó£¬È»ºóÔÙ¶ÔGCµÄ¼¸¸ö¹Ø¼üÎÊÌâ½øÐÐÉîÈë̽ÌÖ£¬×îºóÌá³öһЩJava³ÌÐòÉ ......

JAVA³£ÓòÙ×÷Óï¾ä ÏîÄ¿ÖеÄ×ܽá¶þ


jspÊä³ö¸ñʽ»¯ºóµÄÈÕÆÚ
<fmt:formatDate value="${whiteNumber.crtdate }" pattern="yyyy-MM-dd HH:mm:ss"/>
ÈçÊÇmodelÀïµÄlistÔÚactionÖÐÈ¡²»µ½Öµ¡£¿ÉÄÜÔÚ¸ÃmodelÖеÄlistµÄsetterºÍgetter·½Ê½ÖУ¬Ê¹ÓõĿÉÄÜÊÇlazy¼ÓÔØ£¬¸ÄΪEAGER¼´¿É¡£
<s:iterator>±êÇ©ÀﻹÓÐ<s:iterator>± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ