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

SQLÎĵÄÎÊÌâ - MS-SQL Server / Ó¦ÓÃʵÀý

select kes.k from  
(SELECT acct.KesKigo+acct.KesNo as ak from acct) as a,
(SELECT count(acct.KesKigo+acct.KesNo) as k from acct, fd_user where acct.ActNo = fd_user.ActNo 
 group by acct.KesKigo+acct.KesNo) as kes
where kes.k = a.ak

Õâ¸öSQL´íÔÚÄÄÄØ
Ö´Ðб¨µÄ´íÊÇ£º構ÎÄ´íÎó¡£値 '0G1blB9K9-' ²»ÄÜ´Óvarchar ת»»µ½ int ¥Çー¥¿ÐÍ

KesKigo varchar
KesNo varchar

SQL code:
select kes.k from
(SELECT acct.KesKigo+ltrim(acct.KesNo) as ak from acct) as a,
(SELECT count(acct.KesKigo+ltrim(acct.KesNo)) as k from acct, fd_user where acct.ActNo = fd_user.ActNo
group by acct.KesKigo+ltrim(acct.KesNo)) as kes
where kes.k = a.ak


値 '0G1blB9K9-' ²»ÄÜ´Óvarchar ת»»µ½ int ¥Çー¥¿ÐÍ


ÎÒÏëÎʵÄÊÇÔõô¸Ä

ÒýÓÃ
ÎÒÏëÎʵÄÊÇÔõô¸Ä
°ÑÊýÖµµÄÊý¾ÝÀàÐÍתΪVARCHAR¾Í¿ÉÒÔÁË¡£

select kes.k from  
(SELECT acct.KesKigo+acct.KesNo as ak from acct) as a,
(SELECT count(acct.KesKigo+acct.KesNo) as k from acct, fd_user where acct.ActNo = fd_user.ActNo  
 group by acct.KesKigo+acct.KesNo) as kes
where kes.k = a.ak

akÊÇ×Ö·û,
count(acct.KesKigo+acct.KesNo) as k 
ÕâÀïÊÇINT,ÄÜÏàµÈ???????

select kes.k from  
(SELECT acct.K


Ïà¹ØÎÊ´ð£º

sqlССµÄÒÉÎÊ - .NET¼¼Êõ / C#

¿ÉÄÜÒòΪ¹¤×÷µÄÔ­Òò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......

ÇóÒ»sqlÓï¾ä - MS-SQL Server / ÒÉÄÑÎÊÌâ

ÏÖÔÚÓÐÁ½ÕÅ±í£ºÎÄÕÂÖ÷±íA(articleId,articleTitle)£¬ÎÄÕÂÆÀÂÛ±íB(commentId,articleId,commentTitle)
ÏÖÔÚÎÒÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºÁгöÎÄÕÂÁÐ±í£¬ÆäÖÐÿƪÎÄÕ±êÌâÏÂÃæÁгö´ËÎÄÕµÄÇ°2¸öÎÄÕÂÆÀÂÛ£¬ÇëÎÊsqlÓï¾äÔõôд°¡ ......

MYSQLµ÷¶ÈµÄÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ


3̨µçÄÔ£¬ÆäÖÐһ̨×÷ΪMYSQL·þÎñÆ÷£¬ÁíÍâ2̨ΪTOMCAT·þÎñÆ÷¡£
MYSQL·þÎñÆ÷ÀïÓÐÒ»Ìõ¼Ç¼£¬ IDΪ10.
ÏÖÔÚ2̨TOMCATͬʱ£¨100%£©·¢ÆðÐÞ¸ÄMYSQLÀïIDΪ10µÄÄÇÌõ¼Ç¼£¬±ÈÈçÐ޸ĴËID¼Ç¼ÀïijһÏîµÄÄÚÈÝ¡£ ±ÈÈçTOMCAT 1Ò ......

Çë½ÌSQLÓï¾ä²éѯÎÊÌ⣿ - MS-SQL Server / »ù´¡Àà

ÎÒÏë²éѯ³öÿÌìÊý¾ÝµÄ×î´óµÄÒ»¸öÖµ¡£±íµÄ¸ñʽÈçÏÂ
±íÃû: hisdata
×ֶΠ±àºÅ Öµ ״̬ ʱ¼ä  
  Id value state dattime  
  101 32.3 0 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ