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

ÔÚsqlÖÐʹÓÃoutputºÍ²»Ê¹ÓõÄÇø±ð£¿

ÔÚsqlÖÐʹÓÃoutputºÍ²»Ê¹ÓõÄÇø±ð£¿
ÀýÈ磺
ALTER PROCEDURE [dbo].[sp_1]
@SYS_LNNO varchar(20),
@SYS_CALLER varchar(20),
        @SYS_ORGANIZE varchar(10),
@box_no varchar(50) output,
@play_content varchar(1000) output
AS
declare @caller varchar(20)
declare @phone_id varchar(50)
ÕâÀïʹÓÃoutput ºÍûÓÐʹÓõÄʱºòÇø±ðÊÇʲô£¿
OUTPUT¿ÉÒÔ·µ»ØÒ»¸öֵѽ

SQL code:

²»Ê¹Óõģ¬ÊÇÊäÈë²ÎÊý
ʹÓõģ¬ÊÇÊä³ö²ÎÊý



OUTPUT

±íÃ÷²ÎÊýÊÇ·µ»Ø²ÎÊý¡£¸ÃÑ¡ÏîµÄÖµ¿ÉÒÔ·µ»Ø¸ø EXEC[UTE]¡£Ê¹Óà OUTPUT ²ÎÊý¿É½«ÐÅÏ¢·µ»Ø¸øµ÷Óùý³Ì¡£Text¡¢ntext ºÍ image ²ÎÊý¿ÉÓÃ×÷ OUTPUT ²ÎÊý¡£Ê¹Óà OUTPUT ¹Ø¼ü×ÖµÄÊä³ö²ÎÊý¿ÉÒÔÊÇÓαêռλ·û¡£


²»´øOUTPUTµÄÊÇÊäÈë²ÎÊý£¬´øOUTPUTµÄÊÇÊä³ö²ÎÊý


Ïà¹ØÎÊ´ð£º

ÇóSQL£¿

´ó¼ÒºÃ£¬ÇëÎÊÔÚ±íMÖÐÓÐ×ֶΣºa b c d e 
ÎÒÏë²é³öÆäÖÐÂú×ãÏÂÃæÈÎÒâÒ»ÏîµÄÊý¾Ý£¬1.×Ö¶Îa µÄÖµ²»ÊÇ ¡®Êé»ò±Ê»ò±¾¡¯ÖÐÈÎÒ»£¬2.aΪÊéµÄʱºò×Ö¶Îb,cÊÇ¿Õ;3.µ±aֵΪ±ÊµÄʱºòdÊÇ¿Õ;4.µ±aΪ±¾µÄʱºòb,d,e¶¼ÊÇ¿Õ;5.È ......

sql²éѯÒÉÎÊ

±íÖа´datadate,tradeidΪÖ÷¼ü£¬Ò²¾ÍÊÇ˵tradeid»áÖظ´³öÏÖÔÚ²»Í¬ÌìÖУ¬Í¬Ò»ÌìµÄtradeidÊDz»Í¬µÄ¡£ÏÖÔÚÎÒÏ£ÍûÈ¡Ò»¶Îʱ¼ä·¶Î§ÄÚ²»Öظ´µÄtradeid£¬ÇÒֻҪÿ¸ötradeidµÄ×îºóÒ»´Î³öÏÖµÄÄÇÌõ¡£sqlÓï¾ä¸ÃÔõôд

£º ......

csvÎļþת»»³Ésqlµ¼Èëµ½Êý¾Ý¿â£¬Ã»ÓÐÊý¾ÝΪºÎ£¿

Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......

Á½ÖÖSQLÓï¾ä ЧÂÊÎÊÌâ

Çé¿öÊÇÒ»Õűí(T)ÄÚ£¬Ã¿Ìõ¼Ç¼ÓÐÒ»¸öÀàÐÍ×ֶΣ¬µ±°´ÀàÐÍ×Ö¶ÎÀ´·ÖÀà²éѯ²¢·ÖÒ³´¦Àíʱ
(±íTÄÚµÄÀàÐÍÊÇÖ¸ÏòÁíÒ»ÕÅÀàÐͱíµÄÒ»¸öIDÖµ)
ÎÒÏëµ½ÁËÁ½ÖÖ·½Ê½£»

»·¾³£ºPHP+MYSQL

1¡¢PHP ÏÈÖ´ÐÐÒ»Ìõ²éѯµÃµ½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ