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

sql server2000 Êý¾Ý±È½Ï - MS-SQL Server / Ó¦ÓÃʵÀý

ºÃ£º
 ÎÊÒ»¸öÎÊÌ⣬ÏÖÔÚÓÐÁ½¸öÊý¾Ý¿âA,B£¬AÖÐÓÐÒ»¸öc±í£¬BÖÐÓÐÒ»¸öd±í£¬ÇÒÕâÁ½¸ö±íµÄ½á¹¹ÊÇÒ»ÑùµÄ£¬ÏÖÔÚc±íÓÐ1200¶àÍò¼Ç¼£¬d±íÒ²ÓÐ1200¶àÍò¼Ç¼£¬ÏÖÔÚÏë°ÑÕâÁ½¸ö±íÖв»Í¬µÄ¼Ç¼²é³öÀ´£¬²åµ½ÁíÒ»¸ö±íÖУ¬Çë½Ì´ó¼ÒÔõô°ì£¬Êý¾ÝºÜ´ó£¬²»ÖªµÀÔõô°ì£¬Ð»Ð»ÁË
²»Í¬ÊÇÔõÃ´Çø·ÖµÄ£¿

¸ø¸öʾÀý£¿

°´±íÖÐÖ¸¶¨µÄij¼¸¸ö×Ö¶ÎÖµ½øÐÐÇø·Ö

select a.* from a where a.id not in (select id from b)

insert into des_table 
select * from database1.dbo.table1 a where not exsits (select 1 from database2.dbo.table2 where col1= a.col1 and col2=a.col2 and...)
union all 
select * from database2.dbo.table2 b where not exsits (select 1 from database1.dbo.table1 where col1= b.col1 and col2=b.col2 and...)

ÒýÓÃ
insert into des_table
select * from database1.dbo.table1 a where not exsits (select 1 from database2.dbo.table2 where col1= a.col1 and col2=a.col2 and...)
union all
select * from database2.dbo.table2 b where not exsits (select 1 from database1.dbo.table1 where col1= b.col1 and col2=b.col2 and...)

up¡­

ÈýÂ¥£¬Ð§ÂÊÈçºÎ°¡£¬ÎÒÕâ¿ÉÊÇ1000¶àÍòÊý¾Ý°¡

È«1000¶àÍòҪʲôЧÂÊ£¿ µÈ½á¹û³öÀ´¾ÍºÃÁË£¬Äѵ½Äã¾­³£ÓÃÕâ¸ö£¿


7Â¥ÄãûÓÐÃ÷°×ÎÒµÄÒâ˼£¬ÎÒ²»ÊÇ˵¾­³£Óã¬ÎÒ¾ÍÊÇÓÃÒ»´Î£¬Èç¹û½á¹û³öÀ´ÒªºÜ³¤Ê±¼ä£¬±ÈÈ缸ÌìʲôµÄ£¬Äǿ϶¨ºÜÂé·³Á˰¡£¬ºÇºÇ


Ïà¹ØÎÊ´ð£º

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

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

Çë½ÌSQLSERVERµÄÁ½¸öÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

1¡£ÔõÑùʹxp_cmdshellÄÜÍêÕûÊä³ö³¬¹ý255¸ö×Ö·ûµÄ×Ö·û´®¡£
2¡£select ʱ£¬¼ìË÷ËÙ¶ÈÊÇÓëfromºóµÄ TABLE˳ÐòÓйأ¬»¹ÊÇÓëwhereÌõ¼þµÄ˳ÐòÓйØ(TABLEÊý¾Ý¶àÉÙ )
ÔÚϵͳÊôÐÔÉ趨ÀïÓиöÑ¡Ïî,¿ÉÒÔÐ޸ĵ¥×Ö¶ÎÊä³ö×ÖÊýÏÞÖÆ. ......

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

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