Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : asp.net

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

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

Éæ¼°Êý¾Ý¿â±íµÄÉè¼Æ£¬Ä ......

SQLÊý¾Ý²éѯÅÅÐò - .NET¼¼Êõ / ASP.NET

±íÃû lshg ×Ö¶ÎÃûstate ÏÂÃæÊÇÊÇÊý¾Ý
13.58%
9.88%
29.82%
7.86%
ʧ°Ü
27.55%
9.27%
4.93%
16.67%
22.85%
16.56%
2.44%
5.80%
16.80%
14.14%
8.37%
9.38%
13.96
24.21%
10.75%
Ôõô¸øËû½øÐÐÖØ´óµ½ÏÂÅÅÐò
¸ø×Ô¼º¶¥¸öÏÈ

select * from lshg order by state desc

ÒýÓÃ
select * from ls ......

ÇòÒ»¾äsql - .NET¼¼Êõ / ASP.NET

table A
id income
1 120
2 211
3 116
........
table sum
id total
1 120 --1
2 331 --1+2
3 447 --1+2+3
........
ÈçºÎ°´Ìì»ã×ÜÒÔÀ´µÄÊÕÈ룬sqlÔõôд
select sum(Income) from Table
where Date between StartDate and ......

sql²éѯÎÊÌâ - .NET¼¼Êõ / ASP.NET

SELECT So_Master.sales, wf_status.Result, So_Master.so_no, So_Master.customer_name, 
  So_Master.pi_no
from So_Master INNER JOIN
  wf_status ON So_Master.so_no = wf_status.doc_no
WHERE (So_Master.so_no = N'SCN091000304') OR
  (So_Master.pi_no = N'V091000274') ......

sql²éѯ ÎÊÌâ ÐÂÊÖÈëÃÅ¡­¡­ - .NET¼¼Êõ / ASP.NET

ÃèÊö£ºÊý¾Ý¿âÖÐ×ֶκÍÊý×ÖÈçÏÂËùʾÏêÇé
ÆäÖÐstatus×ֶΣºo´ú±íδÇå¡¢l´ú±íËðʧ¡¢w´ú±íӮȡ
cardcode------------------cardcaname-------------status
c00001----------------------ÐÂΡ¶ë-----------------o
c00001----------------------ÐÂΡ¶ë-----------------o
c00001----------------------ÐÂΡ¶ë-------------- ......

htmlÖеÄobject±êÇ©ÉèÖÃ×ÖÌ壿 - .NET¼¼Êõ / ASP.NET

ÍøÒ³ÖÐǶÈëÒ»¸öActiveX£¬ÔõÑùʹÓÃ<param>Ö¸¶¨×ÖÌ壿
ÈçÏ£º
<OBJECT ID="AX" CLASSID="CLSID:986E24CA-ABCD-1234-5678-04C63B177FB0">
<param name="Font" value="£¿£¿£¿" />
</OBJECT>
ÎÒÊÔ¹ýʹÓÃWord¿ÉÒÔÉú³ÉÀàËÆÈçϵĴúÂ룺
<param name=Fon ......
×ܼǼÊý:2366; ×ÜÒ³Êý:395; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [3] [4] [5] [6] 7 [8] [9] [10] [11] [12]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ