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

ÈçºÎдsqlµÄµÝ¹é²éѯÓï¾ä?

cpcbid    cpcbbh          type  parentid  parentbh            cbze
70      2009120001      11      NULL        NULL           1536.0200
72      2009120002      11      NULL        NULL           706.0500
77      2009120003      11      NULL        NULL           528.5000
82      2009120006      12      70      2009120001     1614.5600
83      2009120007      11      NULL        NULL              NULL
84      2009120008      13      82      2009120006     1626.5600
86      2010010001      14      84      2009120008     1628.5600
87      2010010002      12      70      2009120001     1545.0200
88      2010010003      13      87      2010010002     1565.0200
89      2010010004      13 


Ïà¹ØÎĵµ£º

sqlÖÐdatediffºÍdateaddµÄÓ÷¨

ͨ³££¬ÄãÐèÒª»ñµÃµ±Ç°ÈÕÆںͼÆËãһЩÆäËûµÄÈÕÆÚ£¬ÀýÈ磬ÄãµÄ³ÌÐò¿ÉÄÜÐèÒªÅжÏÒ»¸öÔµĵÚÒ»Ìì»òÕß×îºóÒ»Ìì¡£ÄãÃǴ󲿷ÖÈË´ó¸Å¶¼ÖªµÀÔõÑù°ÑÈÕÆÚ½øÐзָÄê¡¢Ô¡¢Èյȣ©£¬È»ºó½ö½öÓ÷ָî³öÀ´µÄÄê¡¢Ô¡¢ÈյȷÅÔÚ¼¸¸öº¯ÊýÖмÆËã³ö×Ô¼ºËùÐèÒªµÄÈÕÆÚ£¡
¡¡¡¡ÔÚÕâƪÎÄÕÂÀÎÒ½«¸æËßÄãÈçºÎʹÓÃDATEADDºÍDATEDIFFº¯ÊýÀ´¼ÆËã³öÔÚÄã ......

SQLÖ÷¼üС½á

SQL ÖеÄÖ÷¼üµÄ×÷ÓÃ:
Äܹ»Î¨Ò»±íʾÊý¾Ý±íÖеÄÿ¸ö¼Ç¼µÄ¡¾×ֶΡ¿»òÕß¡¾×ֶΡ¿µÄ×éºÏ¾Í³ÆΪÖ÷Âë(Ö÷¼ü)¡£
×÷ÓÃ
1¡¢Ö÷¼üΨһµÄʶ±ðÿһ¼Ç¼;
2¡¢Ö÷¼ü½«¼Ç¼ºÍ´æ·ÅÔÚÆäËû±íÖеÄÊý¾Ý½øÐйØÁª¡£ÔÚÕâÒ»µãÉÏ£¬Ö÷¼üÊDz»Í¬±íÖи÷¼Ç¼֮¼äµÄ¼òµ¥Ö¸Õë¡£
ÈôÓÐÁ½¸ö±íA£¬B£¬keyÊÇAµÄÖ÷¼ü£¬¶øBÖÐÒ²ÓÐkey×ֶΣ¬Ôòkey¾ÍÊDZíBµÄÍâ¼ü¡£
A ......

ÔÚACCESSÊý¾Ý¿âÖдò¿ªsql´°¿ÚµÄ·½·¨

       ΪÁËÖ´ÐÐsqlÓï¾ä£¬ÎÒÃÇ»áÔÚaccessÊý¾Ý¿âÖÐÖ´ÐÐsqlÓï¾ä£¬ÕâÑù·½±ãÎÒÃÇ·ÖÎö¡£·½·¨ÈçÏ£º
     ´ò¿ªaccessÊý¾Ý¿â£¬µã»÷”´´½¨“£¬ÔÚµ¥»÷“²éѯÉè¼Æ”£¬»áµ¯³öÒ»¸öÏÔʾ±íµÄ´°¿Ú£¬¹Øµô¡£»á³öÏÖÒ»¸ösqlÊÔͼ£¬´ò¿ª¾Í¿ÉÒÔÔÙÀïÃæдsql´úÂëÁË¡£ ......

ÒÔ¿ìÕÕ¸´ÖÆΪÀý SQL SERVER 2005 ͬ²½¸´ÖƼ¼Êõ

SQL SERVER 2005 ͬ²½¸´ÖƼ¼Êõ
ÒÔÏÂʵÏÖ¸´ÖƲ½Ö裨ÒÔ¿ìÕÕ¸´ÖÆΪÀý£©
ÔËÐÐƽ̨SQL SERVER 2005
Ò»¡¢×¼±¸¹¤×÷£º
1£®½¨Á¢Ò»¸ö WINDOWS Óû§£¬ÉèÖÃΪ¹ÜÀíԱȨÏÞ£¬²¢ÉèÖÃÃÜÂ룬×÷Ϊ·¢²¼¿ìÕÕÎļþµÄÓÐЧ·ÃÎÊÓû§¡£
2£®ÔÚSQL SERVERÏÂʵÏÖ·¢²¼·þÎñÆ÷ºÍ¶©ÔÄ·þÎñÆ÷µÄͨÐÅÕý³££¨¼´¿ÉÒÔ»¥·Ã£©¡£´ò¿ª1433¶Ë¿Ú£¬ÔÚ·À»ðǽÖÐÉèÌØÀ ......

ÓÃBCP´ÓSQL ServerÖе¼³ötxtÎı¾

BCPÊÇSQL ServerÖиºÔðµ¼Èëµ¼³öÊý¾ÝµÄÒ»¸öÃüÁîÐй¤¾ß£¬ËüÊÇ»ùÓÚDB-LibraryµÄ£¬²¢ÇÒÄÜÒÔ²¢Ðеķ½Ê½¸ßЧµØµ¼Èëµ¼³ö´óÅúÁ¿µÄÊý¾Ý¡£
/********************************************************
ÀýÈ磺
´Ó±¾µØ·þÎñÆ÷ÖУ¨ÓÐÓû§ÃûºÍÃÜÂ룩µ¼³ötxtÎı¾
EXEC master..xp_cmdshell 'bcp "select * from pubs..authors" queryou ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ