-
ÓÖÊǵݹéÌâ¸øÄѵ¹£¡½â¾ö°ì·¨
ÓÖÊǵݹéÌâ¸øÄѵ¹£¡Ò»¸öÅ©³¡ÓÐN½ï²Ý£¬Ò»Ö»ÑòµÚÒ»Ìì³ÔÁËÒ»°ëµÄ²Ý£¬µÚ¶þÌìÓÖ³ÔÁËÕâЩ²ÝµÃÒ»°ë¶àÒ»½ï,µÚÈýÌìÓÖ³ÔÁËÕâЩ²ÝµÃÒ»°ë¶àÁ½½ï£¬µ½NÌìµÄʱºò£¬Å©³¡µÄ²ÝֻʣÏÂÒ»½ï¡£1.ÇëÎÊÕâÖ»Ñò³ÔÁ˶àÉÙÌ죬²Å°ÑÕâN½ïµÄ²Ý³ÔÊ£Ò»½ï£¿2.¼ÆËãÕâN½ïµÄ²ÝÓжàÉٽcolor='#e78608'>------½â¾ö·½°¸--------------------for(intday=N;day>0;--day){sum=su...
53
ÈÈ¶È -
SQL ²éѯ³¬Ê± ͬ»°ÓﲻͬÌõ¼þ
SQL²éѯ³¬Ê±Í¬Óï¾ä²»Í¬Ìõ¼þͬÓï¾ä²»Í¬Ìõ¼þÓеľͺܿ죬1ÃëÓеľͳ¬Ê±SQLcodeselectb.NDTͼֽºÅ,b.º¸¿ÚºÅ,UT.rpt_idas[ID_ReportUT],UT.rpt_ReportNoas[UTNO]fromvWeldBaseChbleftouterjoin(selectrpt_SumType,rpt_ID,rpt_ReportNo,item_ID_WeldBasefromvR...
90
ÈÈ¶È -
ͬÁÐÊý¾ÝÆ´½Ó½â¾ö°ì·¨
ͬÁÐÊý¾ÝÆ´½Ó±ÈÈçÓÐÒ»ÁÐnameabcdÎÒÏëÓÃÒ»¸öSELECTÓïµÃµ½Èçϸñʽ£ºa,b,c,dÇëÎʸÃÔõôд£¿color='#e78608'>------½â¾ö·½°¸--------------------SQLcodeselectwm_concat(name)fromTBcolor='#e78608'>------½â¾ö·½°¸--------------------selectWMSYS.WM_CONCAT(...
17
ÈÈ¶È -
SQL×Ö¶ÎÖµ¹é²¢ ͬ±íͬ×ֶβ»Í¬ÖµºÏ²¢
SQL×Ö¶ÎÖµºÏ²¢Í¬±íͬ×ֶβ»Í¬ÖµºÏ²¢Àýidname1A1B1C2a2b²»ÓÃÐ޸ľÍÓòéѯÄܳÉÕâÑùÂð?id±ðÃû1A,B,C2a,bselectid,group_concat(name)fromÔ±ígroupbyid
32
ÈÈ¶È -
Òþ²ØÏàͬµÄͬ¶ÎÃû½â¾ö˼·
Òþ²ØÏàͬµÄͬ¶ÎÃûÃû³ÆXXXA100A200C200d100A500C200Òþ²ØÏàͬµÄͬ¶ÎÃûÃû³ÆXXXA100200500C200200d100color='#e78608'>------½â¾ö·½°¸--------------------²Î¿¼http://blog.csdn.net/geniuswjt/article/details/6739264color='#e78608'>------½â¾ö·½°¸-...
28
ÈÈ¶È -
ͬ±íÊý¾Ý¸´Öƽâ¾ö·½°¸
ͬ±íÊý¾Ý¸´ÖƸ÷λºÃÓÐÒ»¸öÎÊÌâÇë½Ì´ó¼Ò£¬¸ÃÈçºÎдSQLÓï¾äÒ»£¬ÎÒÏëÖªµÀÈçºÎдSQLÓï¾ä°ÑÏÂÃæµÄÊý¾Ý¸´ÖÆÒ»±éͬʱ°Ñ×Ö¶Îcc±ä³É2£¬ÔÚͬһ¸ö±íÀï±ítable1×Ö¶Îaa£¨×Ô¶¯Ôö³¤£©£¬×Ö¶Îbb£¬×Ö¶Îcc1£¬aaaa£¬12£¬bbbb£¬13£¬cccc£¬1¸´ÖƳɣº1£¬aaaa£¬12£¬bbbb£¬13£¬cccc£¬14£¬aaaa£¬25£¬bbbb£¬26£¬cccc£¬2¶þ£¬Èç¹ûÊý¾ÝÒѾ´æÔÚ¾ÍÖ»¸´ÖƲ»Í¬µÄÈ磺ÔÀ´1£¬aaaa£¬...
42
ÈÈ¶È -
oracleͬ±í±È½Ï£¡¸ÃÔõô´¦Àí
oracleͬ±í±È½Ï£¡¼±¼±¼±¼±¼±£¡oracleÓÐÒ»ÕűíA£¬±íÖÐÓÐa,b,c,d,×ֶΣ¬b×Ö¶ÎΪÈÕÆÚÐÍ£¬cºÍÆäËû×Ö¶ÎΪ×Ö·ûÐÍ£¬ÔÚA±íÖÐabcd1410cc0510ee2611dd2712dd3812cdÒòΪA±íÖдæÔÚc×Ö¶ÎÓÐÏàֵͬ£¬¶øb×Ö¶ÎÖµ²»Í¬£¬µ«ÊÇÎÒÏëÈ¡³öÒÔb×Ö¶Î×î´óµÄÈÕÆÚc×Ö¶ÎΨһµÄÒ»Ìõ¼Ç¼±ÈÈç˵ǰÁ½ÐмǼ£¬c×Ö¶ÎÏàͬ£¬¶øb×ֶβ»Í¬£¬ÅжÏb×Ö¶ÎÖеÄ×î´óµÄÄÇÒ»ÐмǼ£¡Èç¹ûc×Ö¶ÎÊÇΨһµÄ£¬ÄÇô¾ÍÖ±...
23
ÈÈ¶È -
ÔÔ³-----ÎÒͬÒÔµÄ˼Ïë
ÔÔ³-----ÎÒͬÒÔµÄ˼Ïë ÎÒÏëÈç¹ûÄ㲻ϲ»¶±à³Ì£¬ÄÇô±à³ÌµÄÉú»î½«ÊÇÊ®·Ö¿Ö²ÀµÄ£¡¶øÇÒÈç¹ûÄã½ö½öÊdzöÓÚ¶Ô½ðÇ®µÄ¿¼ÂǶøÑ¡Ôñ³ÌÐòÔ±ÕâÒ»Ö°Òµ£¬¶ø²¢²»ÊÇÕæÐÄϲ°®Õâ¸ö¹¤×÷£¬ÄÇôÎÒ·îÈ°Ä㻹ÊÇÔçµã³éÉíµÄºÃ¡£µ«ÊÇ£¬Èç¹ûÄãϲ»¶´´Ô죬ÄÇôÄã¿ÉÒÔ¿¼ÂÇ×öÒ»Ãû³ÌÐòÔ±¡£½ñÌìµÄÊÀ½çÀë²»¿ªµçÄÔ£¬¼¸ºõûÓÐʲôÊÂÇé²»ÊÇÓɵçÄÔÀ´ÔË×÷µÄ¡£¶øÇÒÄã¿ÉÒÔÏëÏë±à³ÌÊÇÒ»¼þ¶àôÆæÃîµÄÊÂÇé°¡¡£ÎÒÈÏΪ£¬µçÄÔ¼¼ÊõÊÇÈËÀàÀúÊ·ÉÏ×î¾ß...
109
ÈÈ¶È -
ͬÓòÃûϵÄJSESSIONIDĦ²Á
ͬÓòÃûϵÄJSESSIONID³åÍ»×î½üÔÚ×öÒ»¸öÏîÄ¿,µ«ÊÇÓÉÓÚ֮ǰһ¸öÏîĿҲͬʱ²¿ÊðÔÚͬһ̨tomcatÏÂ,ËùÒÔ³öÏÖÁËsessionIdµÄ³åÍ»,ÃèÊöһϳåÍ»¹ý³Ì:1.´ò¿ªä¯ÀÀÆ÷·ÃÎʵÚÒ»¸öÏîÄ¿(ÅäÖÃÔÚ¸ùĿ¼)2. ´ò¿ªÁíÒ»±êÇ©·ÃÎʵڶþ¸öÏîÄ¿(springsecurityʾÀýhttpsÐÎʽµÇ¼)×¢Òâ:·ÃÎʵڶþ¸öÏîĿʱµÚÒ»´Î·ÃÎʵǼҳÃæ¾Í´øÉÏÁ˵ÚÒ»´Î·ÃÎʵÚÒ»¸öÏîÄ¿Ëù·µ»ØµÄcookieÖµ(JSESSIONI...
43
ÈÈ¶È -
ͬ×ֶζà¸ölike ²éѯ½»¼Ó
ͬ×ֶζà¸ölike²éѯ½»¼¯createtablea(namenvarchar(50),valuenvarchar(50))insertintoavalues('a','a1'),('a','a1'),('a','a2'),('a','a3'),('b','b1'),('b','b1'),('b','a1')ÎÒÏëlike²éѯͬʱÓÐ1ºÍ3µÄname×îºó²é³öµÄ½á¹ûÖ»ÓÐÒ»ÐÐacolor='#FF8000'...
64
ÈÈ¶È -
ͬ±íÄÚÁª,¸ÃÔõô½â¾ö
ͬ±íÄÚÁªID²úÆ·IDÎïÁÏÃû³ÆËùÓÃÊýÁ¿ÎïÁÏ´óÀà±ê¼Ç111Ãû³Æ11001211Ãû³Æ2701311Ãû³Æ3901411Ãû³Æ41002511Ãû³Æ5902ÏëµÃµ½Èçϱí¸ñ£ºÎïÁÏ´óÀà1ÎïÁÏ´óÀà2Ãû³ÆÓÃÁ¿Ãû³ÆÓÃÁ¿Ãû³Æ1100Ãû³Æ4100Ãû³Æ270Ãû³Æ590Ãû³Æ390color='#FF8000'>------½â¾ö˼·----------------------ÎÒÖ»»á¾²Ì¬µÄ£¬´ó¸Å¿ÉÒÔÕâôд¡£¡£¡£;withtb(ID,...
88
ÈÈ¶È -
ͬ±íͬ×ֶΠÊý¾Ý²î ÇóSQLÓï¾ä £¬¸ÃÔõô´¦Àí
ͬ±íͬ×Ö¶ÎÊý¾Ý²îÇóSQLÓï¾ä£¬SQL2005ͬ±íͬ×ֶΣ¬ÒÔ×ֶηÖ×é¼ÆËã²îлл°ï棬color='#FF8000'>------½â¾ö·½°¸--------------------/*A×ֶεÄÖµÊÇ·ñÈ·¶¨Ö»ÓÐ2¸ö£ºJºÍC£¬Èç¹ûÓиü¶àÆäËûÖµ£¬¾ÍÐèÒª×öÆäËû´¦ÀíÁË£¬Ä¿Ç°ÏÈÒÔµ±Ç°Çé¿öд³öÓï¾ä*/withTest([A],[B],[C])as(select'J',500,1unionallselect'J',300...
37
ÈÈ¶È -
ÂÛ̳ÀïÓÐÔÚ·ÏÆ·Õ¾Âò¹ý¾Éµç·°åÓÑÈËÂð
ÂÛ̳ÀïÓÐÔÚ·ÏÆ·Õ¾Âò¹ý¾Éµç·°åÅóÓÑÂð£¿ÂÛ̳ÀïÓÐÔÚ·ÏÆ·Õ¾Âò¹ý¾Éµç·°åÅóÓÑÂð£¿ÎÒÊÇѧµç×ÓרҵµÄ£¬ÏëÃ÷ÌìÔÚѧУ¸½½üµÄ·ÏÆ·Õ¾ÌÍЩ¾Éµç·°å£¬²»ÖªµÀ¶àÉÙǮһ½ï£¿ÓÐÂò¹ýµÄÅóÓѸæËßÎÒÂ𣿽ËÕÄϾ©Õâ±ßµÄ¡£½ËÕÆäËû³ÇÊÐÒ²¿ÉÒÔ¡£²»·½±ãÂÛ̳˵µÄ»°Ò²¿ÉQQÁªÏµÎÒ£¬QQ:1225014264color='#FF8000'>------×î¼Ñ½â¾ö·½°¸-----------------------------------------...
9619
ÈÈ¶È -
Ê©ÓÃfputcsvµ¼³ömysql²éѯÄÚÈݳöÏÖÁ½´Î
ʹÓÃfputcsvµ¼³ömysql²éѯÄÚÈݳöÏÖÁ½´Î <? header('Content-Type:application/vnd.ms-excel;charset="gbk"'); header('Content-Disposition:attachment;filename="user.csv"'); header('Cache-Control:max-age=0'); $fp=fope...
286
ÈÈ¶È -
Ê©ÓÃfputcsvµ¼³ömysql²éѯÄÚÈݳöÏÖÁ½´Î
ʹÓÃfputcsvµ¼³ömysql²éѯÄÚÈݳöÏÖÁ½´Î<?header('Content-Type:application/vnd.ms-excel;charset="gbk"');header('Content-Disposition:attachment;filename="user.csv"');header('Cache-Control:max-age=0');$fp=fopen('php...
26
ÈÈ¶È -
macbook air ¿ÉÒÔ×öASP.NET ±à³ÌÂ𣿽â¾ö·½°¸
macbookair¿ÉÒÔ×öASP.NET±à³ÌÂð£¿ÈçÌ⣬ÒÔºó¿ÉÄÜÐèÒª¾³£Åܶ¯×öASP.NET¿ª·¢¡£¾ÍÊÇÒª±§×ű¾×ÓÀ´»Ø×ß¡£ÎÒÄÇ5¡¢6½ïµÄideapadY550Ì«ÖØÁË£¬ÏÖÔڻؼҶ¼ÀÁµÃ´øÁË¡£¡£ÓоÑéµÄ´ó´ó¸æËßÎÒÏ£¬Ð»Ð»Àcolor='#e78608'>------½â¾ö·½°¸--------------------×°windowsϵͳ.Ö®ºóÒ»ÇÐÕÕ³£.color='#e78608'>------½â¾ö·½°¸----...
294
ÈÈ¶È -
ûÓм¤ÇéÔõôд´úÂë
ûÓм¤ÇéÈçºÎд´úÂëû¸Ð¾õд´úÂë¡£¡£¡£ÎÒÊÇÊÇÔõôÁËÄØ¡£¡£¡£Ïë·¨ºÍʵÏÖ¶¼ÔÚÄÔ´üÖе«ÊǾÍÊDz»Ï븶֮ÓÚ±ÊÏ¡£color='#e78608'>------½â¾ö·½°¸--------------------¿´×žµ×Ó¶ÔÀïÃæµÄÄǸö¼Ò»ï˵£ºyou£¡ÎÒ¸øÄãÁ½¸öÑ¡ÔñҪôд´úÂëҪô¾ÍÈ¥ÕÒÒ»¸ö200¹«½ïµÄ»ùÓÑ̸Áµ°®Ñ¡°É£¡color='#e78608'>------½â¾ö·½°¸--------------------Ó¦¸ÃÕâÑùÏ룺Ϊ...
85
ÈÈ¶È -
ͬipÕ¾µã²éѯ¹¦ÄÜÊÇÈçºÎ×öµÄ
ͬipÕ¾µã²éѯ¹¦ÄÜÊÇÔõô×öµÄ£¿ÓÐÄÄλ´óÉñÖªµÀͬipÕ¾µã²éѯÕâ¸ö¹¦ÄÜÊÇÔõô×öµÄ£¬ºÜ¶àÕ¾³¤¹¤¾ßÉ϶¼ÓеÄÄÇÖÖ¹¦ÄÜ£¬dns·´Ïò½âÎö£¿http://tool.chinaz.com/Same/<--ÕâÊÇÕ¾³¤Ö®¼ÒµÄcolor='#e78608'>------½â¾ö·½°¸-------------------- ¶¼ÊÇÓÃ΢ÈíµÄBING½Ó¿ÚÀ´²éÑ°£¬ÒòΪBingץȡҳÃæʱ°ÑIP¼ÇÏÂÁË
176
ÈÈ¶È -
ͬipÕ¾µã²éѯ¹¦ÄÜÊÇÈçºÎ×öµÄ
ͬipÕ¾µã²éѯ¹¦ÄÜÊÇÔõô×öµÄ£¿ÓÐÄÄλ´óÉñÖªµÀͬipÕ¾µã²éѯÕâ¸ö¹¦ÄÜÊÇÔõô×öµÄ£¬ºÜ¶àÕ¾³¤¹¤¾ßÉ϶¼ÓеÄÄÇÖÖ¹¦ÄÜ£¬dns·´Ïò½âÎö£¿http://tool.chinaz.com/Same/<--ÕâÊÇÕ¾³¤Ö®¼ÒµÄcolor='#e78608'>------½â¾ö·½°¸--------------------¶¼ÊÇÓÃ΢ÈíµÄBING½Ó¿ÚÀ´²éÑ°£¬ÒòΪBingץȡҳÃæʱ°ÑIP¼ÇÏÂÁË
12
ÈÈ¶È -
ͬ±íͬ×ֶζàÌõ¼þ²éѯ,¸ÃÈçºÎ½â¾ö
ͬ±íͬ×ֶζàÌõ¼þ²éѯselectsum(lh_fq)FROMLH_ZTwherelh_lb='Ò»×é'and"date"=convert(varchar(10),getdate()-1,120)unionallselectsum(lh_ss)FROMLH_ZTwherelh_lb='Ò»×é'and"date"=convert(varchar(10),getdate()-1,120)unionallse...
25
ÈȶÈ