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

sqlÓï¾äÇó½â - .NET¼¼Êõ / ASP.NET

Á½¸ö¶à±íÁª²é¶àÓï¾ä  
µÚÒ»¸ö±íÊÇ A BÁ½±í²é³ö
ID  
1
2
3
4
5
µÚ¶þ¸ö±íÉÌ A B CÈý±í²é³ö
3
4
5

ÎÊÈçºÎ°ÑʣϵÄ1£¬2Ò²²é³öÀ´
×îºÃÌù³öSQLÓï¾ä

union all ??
»òÕß×óÁ¬½Ó
SQL code:

select * from a left join b on a.id=b.id



°ï¶¥£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡

Éæ¼°Êý¾Ý¿â±íµÄÉè¼Æ£¬ÄÚÈÝÒÔ¼°Á¬½ÓÎÊÌ⣬ҲÐíÓÀÔ¶²é²»³öÀ´

±íµÄ¹Øϵ£¨¼ü»òË÷Òý£©¡­¡­

inµÚÒ»Õűí not inµÚ¶þÕűí

¼òµ¥À´Ëµ ±íA ID ±íB ID ±íC ID
select * from A£¬B
where A.ID = B.ID
µÃ³öIDΪ1£¬2£¬3£¬4£¬5ÌõÊý¾Ý

select * from A,B,C
where A.ID = B.ID
A.ID =C.ID
µÃ³öIDΪ1£¬2£¬3Êý¾Ý

ÏëÖªµÀÈçºÎ»ñµÃʣ϶à 4£¬5µÄÊý¾Ý

µÚÒ»±íÓï¾ä¼ÓÉÏ

and id not in(select id from µÚ¶þ±í...)

µÚÒ»±íÓï¾ä¼ÓÉÏ

and id not in(select id from µÚ¶þ±í...)

SQL code:
select * from A join B
on A.ID = B.ID left join c A.ID =C.ID




SQL code:

-- µÚÒ»Ìõselect µÃ³öIDΪ1£¬2£¬3£¬4£¬5ÌõÊý¾Ý
-- µÚ¶þÌõselect µÃ³öIDΪ3,4,5ÌõÊý¾Ý.
-- not in ,·µ»ØµÚÒ»Ìõselect½á¹ûÖв»ÔÚµÚ¶þÌõselect½á¹ûÖеÄ


Ïà¹ØÎÊ´ð£º

ÔÚasp.netÀïÃæ½Å±¾³ö´í - .NET¼¼Êõ / ASP.NET

function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;

var div1=document.getElementById("divPwd");

if (pwd.value=="")
{
......

asp.net³ÌÐòÔ±ÇóÖ° - .NET¼¼Êõ / ·Ç¼¼ÊõÇø

±¾È˹¤×÷¾­ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾­Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾­ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......

ÇóÖúasp.netͼƬÉÏ´« - .NET¼¼Êõ / ASP.NET

¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£

ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......

js¿ØÖÆasp¿Õ¼ädropdownlist - .NET¼¼Êõ / ASP.NET

ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ­°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......

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

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