accessÖÐcaseÌæ´ú·½·¨
accessÖÐcaseÌæ´ú·½·¨
2009-12-26 14:01
SELECT
UserPassportID as PassportID,
UserID,
GrantorID,
Case ObjectTypeID
When 1 then ObjectID
End
as TerminalID,
Type, Flag, GrantDate, Validate, Invalidate
from UserPassport
ÔÚSQLÀïÄÜÖ´ÐÐ,µ«ÔÚAccessÀï×ÜÌáʾÓï·¨´íÎó(²Ù×÷·û¶ªÊ§).ÔÚ²éѯ±í´ïʽ'Case ObjectTypeID
When 1 then ObjectID
End'ÖÐ?
Sql:
select bb,cc,case aa when 'Ò»ÐǼ¶' then '*'
when '¶þÐǼ¶' then '** '
when 'ÈýÐǼ¶' then '*** '
when 'ËÄÐǼ¶' then '**** '
when 'ÎåÐǼ¶' then '***** '
end
from aaa
Access£º
select bb,cc,iif(aa='Ò»ÐǼ¶','*',iif(aa='¶þÐǼ¶','**',iif(aa='ÈýÐǼ¶','***',iif(aa='ËÄÐǼ¶','****',iif(aa='ÎåÐǼ¶','*****')))))
from aaa;
AccessÖÐSwitchºÍChoose¹Ø¼ü×ÖµÄÓ÷¨AccessÖгÌÐòÁ÷³Ìº¯ÊýÓÐÈý¸ö£¬Iif £¬Switch
Switch¹Ø¼ü×Ö
AccessÖÐûÓÐCase WhenµÄÓ÷¨£¬ËùÒÔ¶ÔÓÚijЩɸѡ±È½Ï¾ÍÏԵúܳÔÁ¦¡£²»¹ý»¹ºÃ£¬AccessÖÐÓÐÒ»¸öSwitch¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ¡£Switch µÄÓï·¨ÊÇ£ºSWITCH( case_1, result_1[, case_2, result_2...])¡£SwitchµÄ¼ÆËã˳ÐòΪ´Ó×óµ½ÓÒ£¬½«·µ»ØµÚÒ»¸öΪtrueµÄcase¶ÔÓ¦µÄresult¡£ACCESS¶ÔSwitchÓÐÔ¤±àÒ루»ù±¾Äܹ»Ð´½øACCESSµÄSql¶¼ÓÐÔ¤±àÒ룬ACCESS²»Ö§³ÖExecute(SqlString)µÄÓ÷¨£©£¬ËùÒÔSwitchÖеÄÌõ¼þºÍ½á¹û²»ÄÜÓÐÂß¼´íÎóºÍÓï·¨´íÎ󣬷ñÔò²»ÄÜÖ´ÐС£
ʵÀý£º±ítUserÖÐÓÐ×Ö¶Îsex Text(1)£¬ÓÃÓÚ´æ´¢Óû§ÐÔ±ð£¬ÆäÖУ¬Èçsex='m'£¬Óû§ÎªÄÐÐÔ£»sex='f'£¬Óû§ÎªÅ®ÐÔ£»ÆäËûÇé¿öΪ±£ÃÜ¡£ÎªÁ˱ãÓÚsqlÓï¾äµÄ˵Ã÷£¬ÎÒÃǼÙÉ軹ÓÐÆäËûÁ½¸ö×ֶΣ¬useridºÍusername¡£
ÔÚSqlServerÖУ¬Èç¹ûÒªÔÚËÑË÷½á¹ûÖÐÖ±½ÓÏÔʾÐÔ±ðµÄÃû³ÆSexName£¨²»ÊÇm/fÖ®ÀàµÄ´úÂ룩£¬Ê¹ÓÃCase WhenºÜ·½±ã¡£
SELECT UserID,
UserName,
SexName = WHEN LCASE(Sex)
CASE 'm' THEN N'ÄÐ'
CASE 'f' THEN N'Å®'
ELSE N'±£ÃÜ' END
from tUser
ACCESS²»Ö§³ÖWHEN CASEµÄÓ÷¨¡£ËäÈ»²»ÄÇôÁéÇÉ£¬µ«ÊÇÓÃSwitch¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ¡£
SELECT UserID,
Ïà¹ØÎĵµ£º
Ò»¡¢AccessÓëSqlServerÊý¾ÝÀàÐÍ±È½Ï Microsoft Access Êý¾ÝÀàÐÍ SQL Server Êý¾ÝÀàÐÍ ÊÇ/·ñ£¬£¨0ºÍ-1£©
1 룬²»ÔÊÐíÓÐ Null Öµ¡£ bit(1¡¢0 »ò NULL) Êý×Ö£¨×Ö½Ú£©£ ......
Oracle,MySQL,MSSQL ServerºÍAccessÊý¾Ý¿âµÄͳ¼Æº¯Êý
ÎÒÃÇÔÚ±à³ÌÖг£ÓõÄͳ¼Æº¯ÊýÓмÆÊý,ÇóºÍ,Çó×î´óÖµ,Çó×îСֵ,Çóƽ¾ù,·½²îºÍ±ê×¼²î.
·½²î(Variance)
·½²îÊDZê׼ƫ²îµÄƽ·½¡£×éÖеÄÖµ£¬ÓëËüÃÇƽ¾ùÖµÖ®¼äÆ«Àë³Ì¶ÈµÄ¶ÈÁ¿¡£
±ê׼ƫ²î(Standard Deviation)
Ò»¸ö²ÎÊý£¬Ö¸³öÒ»ÖÖ·½Ê½£¬Ò»¸ö¸ÅÂʺ¯ÊýÒÔÕâÖÖ·½Ê½·Ö²¼ÔÚƽ¾ùÖµ¸ ......
ÔÒò£ºIISûÓÐ×¢²á
½â¾ö°ì·¨£º
ÔÚCMDÖнøÈëĿ¼C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727£¬ÔËÐÐaspnet_regiis
1¡¢aspnet_regiis -ga administrator£¨administratorΪµ±Ç°Óû§£©
2¡¢aspnet_regiis -i £¨×¢²áIIS£©
3¡¢iisreset /noforce £¨ÖØÆôIIS£©
²Ù×÷Ïêϸ£º
C:\Documents and Settings\Administrator>cd ......
ѧϰwxWidgetsµÄʱºòÏëÓÃËüÁ¬½ÓÊý¾Ý¿â£¬²»¹ýwxWidgetsµÄѧϰ×ÊÁϷdz£ÉÙ£¬ºÍODBCÓйصľ͸üÉÙ£¬ÍøÂçÉÏÕÒµ½µÄ¶¼²»ÖªµÀΪʲôÎÞ·¨ÕýÈ·ÔËÐС£ÕâÊÇÔÚCSDNÉÏÅóÓѵİïÖúϸ㶨µÄ£¬×Ô¼ºÑéÖ¤¹ý¿ÉÒÔÕýÈ·±àÒëºÍÔËÐС¢³É¹¦¶ÁÈ¡Êý¾ÝÄÚÈݵĴúÂ룺
wxWidgets°æ±¾£º2.8.10£¨2.9ÒÔºóµÄ°æ±¾²»Ö§³ÖODBC ......
/************************************************************************
* Description: ·ÃÎÊzipÖеÄhtm Ö® Widgetsѧϰ
* Author: ³ÂÏàÀñ
* Compiled: VC8 + wxWidgets2.8.10
* Date: 04/02/10
************************************************************************/
/******************************** ......