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

ÇóÖú£ºSQL Server²éѯ - .NET¼¼Êõ / C#

Á½¸ö±í£¬Ò»¸ö»áÔ±±í£¬Ò»¸öÏû·Ñ¼Ç¼±í¡£ÐèÒª²éµÄÊÇ×î½üÏû·ÑµÄ»áÔ±£¬È»ºó»áÔ±±íͨ¹ýÏû·Ñʱ¼äµ¹ÐòÅÅÐò¡£ÇóÖú´ó¼ÒÔõô×ö¡£ÎÒ´òËãÏÈ·Ö×飬ͳ¼Æ¿¨»áÔ±µÄ¸öÊý£¬È»ºóÔÚͨ¹ýÏû·Ñ±íÖеÄÏû·Ñʱ¼äÌõ¼þÅÅÐò£¬µ«ÕâÑùÅÅÐòÍêÈ«²»ÐС£ÇóÖú´ó¼Ò¸ÃÈçºÎ½â¾ö£¬Ð»Ð»£¡
Á½¸ö±í£¬Ò»¸ö»áÔ±±í£¬Ò»¸öÏû·Ñ¼Ç¼±í¡£ÐèÒª²éµÄÊÇ×î½üÏû·ÑµÄ»áÔ±£¬È»ºó»áÔ±±íͨ¹ýÏû·Ñʱ¼äµ¹ÐòÅÅÐò¡£
(1)ÏÈ°ÑÁ½¸ö±íÁªÏµÆðÀ´
select * from »áÔ±±í inner join Ïû·Ñ¼Ç¼±í on »áÔ±±í.×Ö¶Î1=Ïû·Ñ¼Ç¼±í.×Ö¶Î1
È»ºó¸ù¾ÝÏû·ÑÕßʱ¼ä
select * from (select * from »áÔ±±í inner join Ïû·Ñ¼Ç¼±í on »áÔ±±í.×Ö¶Î1=Ïû·Ñ¼Ç¼±í.×Ö¶Î1) as ±í2 order by Ïû·Ñ¼Ç¼±í.ʱ¼ä×ֶΠdesc


LZÊÔÏÂ
ÊDz»ÊÇÄãÏëÒªµÄ½á¹û
 

¶ÔÂ¥ÉϵIJ¹³ä ¿ÉÒÔ°Ñ*¸Ä³ÉÄãÐèÒªµÄÕâÑùЧÂʸßÒ»µã£¬²»È»±íÁ¬½ÓµÄµÑ¿¨¶û»ýÔËË㣬Êý¾Ý¶àÒ»µãЧÂʺܵÍ

LZû˵ÄÇÏêϸ¡­¡­


²»ºÃÒâ˼£¬ÎÒ˵Ïêϸµã°É¡£
»áÔ±±íMemberÖ÷ÒªÒÔMemberIdΪÖ÷£¬Ïû·Ñ¼Ç¼±íCashLogÖ÷Òª°üÀ¨×ֶΣ¬MemberId¡¢Time¡£MemberIdΪÖ÷Òª¶ÔÏó£¬TimeΪÅÅÐòµÄÌõ¼þ¡£

ÒýÓÃ
LZÊÔÏÂ
ÊDz»ÊÇÄãÏëÒªµÄ½á¹û


¸ÕÊÔÁËÏ£¬»¹ÊDz»ÐС£

½¨Òé°Ñ±í½á¹¹·¢Ò»·Ý

ÈÕ£¬²»Ðо͸ıí½á¹¹£¬±ðÄÇôËÀ°å¡£

upÏ òËƲ»Ö±¹Û ²»ÊǺÜÃ÷°× ²»Äܰѱí¸ÄÏÂÂð

SQL code:

SELECT memberID,memberName from member WHERE memberID IN (

SELECT memberID from cashlog GROUB BY memberID ORDER BY time
)




Òý


Ïà¹ØÎÊ´ð£º

sql - MS-SQL Server / ÒÉÄÑÎÊÌâ

sqlµÄÈí¼þÔÚÄÄÀï¿ÉÒÔÏ°¡£¡ÔÚÍøÉÏÕÒÁËÂù¶à¶¼Óò»ÁË°¡

Ëæ±ã¸ãÒ»D°æ°É£¬

ѸÀ×µÚÒ»¸ö¾Í¿ÉÒÔÓÃ
2000,2005¶¼ÕâÑù

http://119.147.41.16/down?cid=0698C2D64D7D637D90A6D2482298E6717D4F15CD&t=2&fmt=-1 ......

ÇóÒ»¸öSQLÓï¾ä - MS-SQL Server / »ù´¡Àà

×Ö¶Î1,×Ö¶Î2.....×Ö¶ÎN,Status,ParentID
1,Name1....test1,1,99
1,Name1....test1,3,99
1,Name2....test2,1,101
1,Name2....test2,3,101
1,Name3....test3,2,101
1,Name1....test1,4,101
ÏëÒªµÄ½á¹ûÊÇ:
1,Na ......

c# listviewÌí¼ÓºÏ¼ÆÐÐ - .NET¼¼Êõ / C#

ÓÃlistviewÏÔʾ³ö´ÓÊý¾Ý¿âÖвéѯ³öµÄ¼Ç¼£¬ÏëÔÚ×îºó¼Ç¼ºóÃæÌí¼ÓÒ»ÌõºÏ¼ÆÐУ¬ÈçºÎʵÏÖ£¡Ð»Ð»´ó¼Ò£¡
°ó¶¨Êý¾ÝÄãÓ¦¸ÃûÎÊÌâ°É£¬°ó¶¨ÍêÒÔºóÓÃÒ»¸öÑ­»·°ÑÄãҪͳ¼ÆÊý¾ÝµÄÁÐÖеÄÊý¾Ý×ܺÍÓÃÒ»¸ö±äÁ¿½ÓÊÜ£¬È»ºóÔÚÑ­»·ÍâÃæne ......

¹ØÓÚSqlµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET

½«Ò»¸ö²éѯÓï¾ä¸³¸øÒ»¸ö±äÁ¿£¬ÈçÏ£º
DECLARE @STR NVARCHAR(MAX)
SET @STR='SELECT * from SALE_PROD'
ÔõôÑù²ÅÄÜÖ´ÐÐËüÄØ£¿
Çë¸ßÊÖ£¬ÈÊÐÖ£¬ÏÀ½ã°ï°ïæ°¡


¶àл£¬¿ÉÒÔÀ²£¬¸ßÊÖ°¡

Ö±½ÓÖ´ÐоÍÐÐÁË

exec ......

ASPÒ³ÃæÎÞ·¨´ò¿ªÇóÖú£¡ - MS-SQL Server / »ù´¡Àà

¸÷λºÃ£¬ÎÒ¸Õ°ÑÒ»¸öASPÍøÕ¾ÉèÖúÃÁË£¬Ò²ÄÜÕý³£·ÃÎÊ¡£µ«ÊÇÔÚÎÒ±¾»úÉϲ»ÄÜ´ò¿ªadmin\login.asp,ËùÒÔÎÞ·¨ÊµÏÖºǫ́¹ÜÀí¡££¨´íÎóÌáʾÎÞ·¨ÕÒµ½ÍøÒ³£¬´úÂë404£¬ÎҵIJÙ×÷ϵͳÊÇwin2000 server)
µ«ÊÇÆæ¹ÖµÄÊÇÔÚ¾ÖÓòÍøµÄÆäËû» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ