SQL code:
select A.commandKey,A.enabled,A.commandFile,A.targetControl,A.rightId,A.type,[B].[value] as commandType,A.state,[C].[value] as commandState,A.parent,A.commandText,A.commandTipText,A.icon,A.description
from t_commands as A
inner join t_parameters as B on [A].[type]=[B].[code]
inner join t_parameters as C on [A].[state]=[C].[code]
where B.id=3 and C.id=4
ÈçÉÏSQL£¬Ö´ÐеÄʱºò¾ÍÌáʾ¡°Óï·¨´íÎ󣨲Ù×÷·û¶ªÊ§£©ÔÚ¡®[A].[type]=[B].[code]
inner join t_parameters as C on [A].[state]=[C].[code] ¡¯ÖС±µÄÌáʾ£¬È»ºóÎÒ·¢ÏÖÈç¹û°ÑºóÃæµÄjoinÓï¾äÈ¥µô²»Á¬½ÓµÄ»°¾ÍÄÜÕý³£²éѯ³öÊý¾Ý£¬ÊDz»ÊÇAccess²»Ö§³Ö¶à¸öÁ¬½Ó²éѯµÄ£¿
select * from (select * from table1 t1 left join table2 t2 on t1.id=t2.id) t left join table3
t3 on t.id=t3.id
Ö»ÓÐÓÃLEFT¡¡JOIN+RIGHT¡¡JOIN
select A.commandKey,A.enabled,A.commandFile,A.targetControl,A.rightId,A.type,.[value] as commandType,A.state,[C].[value] as commandState,A.parent,A.commandText,A.commandTipText,A.icon,A.description
from (t_commands as A
inner join t_parameters as B on [A].[type]=[B].[code] )
inner join t_parameters as C on [A].[state]=[C].[code]
where B.id=3 and C.id=4
[b]¼ÓÉÏ£¨£©
ѧϰÖÐ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~¶¥Æð£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡
¸ßÊÖ¶¼°ïÄã»Ø´ðÁË
ÎҾ͸æËß
ÎÒ´Óºǫ́»ñÈ¡ÁËϱßÒ»¶Îhtml´úÂ뵫ÎÒÏÖÔÚÏë°É<span></span>ÀïµÄÄÚÈݹýÂËÈ¥µôËÄܸø¸öºÃµÄ£¬¼òµ¥µÄ·½·¨
¶àл¸÷λÁË¡¡
<html>
<body>
<div>
<sp ......
ÍøÉÏCOPYÒÔ¼°ÕûÀí»Ø´ðÍøÓѵÄÎÊÌâ¡£´ó¼Ò¿ÉÒÔ¼ÓÈëÎÒн¨µÄQQȺһÆðÁÄÁÄ£¬¹²Í¬Ñ§Ï°¡£
QQȺºÅ£º109967503
c#µÄÒ»Ð©ÌØÕ÷£º
Íêȫ֧³ÖÀàºÍÃæÏò¶ÔÏó±à³Ì£¬°üÀ¨½Ó¿ÚºÍ¼Ì³Ð¡¢Ð麯ÊýºÍÔËËã·ûÖØÔØµÄ´¦Àí¡£
¶¨ÒåÍêÕû¡ ......
ÈçºÎ½«Ò»¸öListBoxÖеÄÊý¾Ý´æÔÚÊý¾Ý¿âÖеÄÒ»¸ö×Ö¶ÎÏÂÃæ£¬²¢ÇÒÿÌõ¼Ç¼µÄ×Ö·û´®¸öÊý²»Ò»¶¨ ÒÔ¼°ÈçºÎ´ÓÊý¾Ý¿âÖжÁÈ¡¸ÃListBoxÖеÄËùÓмǼ
C/C++ code:
//´æÈëÊý¾Ý¿â
void __fastcall TForm1::Button5Click(TO ......