accessº¯Êý²Î¿¼
ÈÕÆÚ/ʱ¼ä
CDate ½«×Ö·û´®×ª»¯³ÉΪÈÕÆÚ select CDate("2005/4/5")
Date ·µ»Øµ±Ç°ÈÕÆÚ
DateAdd ½«Ö¸¶¨ÈÕÆÚ¼ÓÉÏij¸öÈÕÆÚselect dateAdd("d",30,Date())½«µ±Ç°ÈÕÆÚ¼ÓÉÏ30Ìì,ÆäÖÐd¿ÉÒÔ»»Îªyyyy»òHµÈ
DateDiff ÅжÏÁ½¸öÈÕÆÚÖ®¼äµÄ¼ä¸ô select DateDiff("d","2006-5-1","2006-6-1")·µ»Ø31,ÆäÖÐd¿ÉÒÔ»»Îªyyyy,m,HµÈ
DatePart ·µ»ØÈÕÆÚµÄij¸ö²¿·Ö select DatePart("d","2006-5-1")·µ»Ø1,¼´1ºÅ£¬dÒ²¿ÉÒÔ»»Îªyyyy»òm
Day ·µ»ØÈÕÆÚµÄd²¿·Ö,µÈͬÓÚdatepartµÄd²¿·Ö
Hour ·µ»ØÈÕÆÚµÄСʱ
IsDate ÅжÏÊÇ·ñÊÇÈÕÆÚ,ÊÇÈÕÆÚ·µ»Ø-1,²»ÊÇÈÕÆÚ·µ»Ø0
Minute ·µ»ØÈÕÆڵķÖÖÓ²¿·Ö
Month ·µ»ØÈÕÆÚµÄÔ·ݲ¿·Ö
Now ·µ»Øµ±Ç°Ê±¼ä(ÍêÕûʱ¼ä£¬°üÀ¨ÄêÔÂÈÕ Ð¡Ê±·ÖÃë)
Second ·µ»ØÈÕÆÚµÄÃ벿·Ö
Time ·µ»Øµ±Ç°µÄʱ¼ä²¿·Ö(¼´³ýÈ¥Äê/ÔÂ/ÈյIJ¿·Ö)
Weekday ·µ»Øij¸öÈÕÆڵĵ±Ç°ÐÇÆÚ(ÐÇÆÚÌìΪ1,ÐÇÆÚһΪ2,ÐÇÆÚ¶þΪ3...)£¬ÀýÈçselect weekday(now());
Year ·µ»Øij¸öÈÕÆÚµÄÄê·Ý
¡ø¼ì²é
IsEmpty ¼ì²âÊÇ·ñΪ¿Õ(²»¹ý¾²âÊÔ£¬²»¹ÜʲôÇé¿ö£¬¶¼·µ»Ø0)
IsNull ¼ì²âÊÇ·ñΪNullÖµ£¬nullÖµ·µ»Ø0£¬·ÇnullÖµ·µ»Ø-1
IsNumeric ¼ì²âÊÇ·ñΪÊý×Ö,ÊÇÊý×Ö·µ»Ø-1£¬·ñÔò·µ»Ø0
ËãÊõ
Abs ¾ø¶ÔÖµ
Atn ·µÕýÇÐÖµ¡£
Cos ÓàÏÒÖµ
Exp ·µ»Ø e µÄ¸ø¶¨´ÎÃÝ¡£
Fix ·µ»ØÊý×ÖµÄÕûÊý²¿·Ö(¼´Ð¡Êý²¿·ÖÍêÈ«½Øµô)
Int ½«Êý×ÖÏòÏÂÈ¡Õûµ½×î½Ó½üµÄÕûÊý¡£(ÆäʵµÈͬÓÚFix)
Log ·µ»ØÒÔEΪµ×µÄ¶ÔÊýÖµ
Rnd ·µ»ØÒ»¸ö0µ½1Ö®¼äµÄËæ»úÊýÖµ
Sgn ·µ»ØÊý×ÖµÄÕý¸º·ûºÅ(ÕýÊý·µ»Ø1,¸ºÊý·µ»Ø-1,0Öµ·µ»Ø0)
Sin ÕýÏÒÖµ
Sqr ·µ»Øƽ·½¸ùÖµ
Tan ÕýÇÐÖµ
¡ø³ÌÐòÁ÷³Ì
Choose ¸ù¾ÝµÚÒ»²ÎÊý£¬·µ»ØºóÃæ×Ö·û´®×éµÄÖµ,Select Choose(1,"a","b","c")·µ»Øa,½«1¸Ä³É2ºó£¬·µ»Øb,¸Ä³É3ºó£¬·µ»Øc(µÚÒ»¸ö²ÎÊýÒ²¿ÉÒÔÊÇij¸ö×Ö¶Î)
IIF ¸ù¾Ý±í´ïʽ·µ»ØÌض¨µÄÖµ Select IIF("3>1","OK","False")£¬·µ»ØOK
¡øSqlºÏ¼Æº¯Êý
Avg È¡×Ö¶Îƽ¾ùÖµ
Count ͳ¼Æ¼Ç¼ÌõÊý
Max È¡×Ö¶Î×î´óÖµ
Min È¡×Ö¶Î×îСֵ
StDev ¹ÀËãÑù±¾µÄ±ê×¼²î£¨ºöÂÔÑù±¾ÖеÄÂß¼Öµ
Ïà¹ØÎĵµ£º
1 £¬¶ÔÓÚÈÕÆÚ×Ö¶Î×Ö¶Î
access±íʾΪ£º#1981-28-12#
SQLSERVER2000±íʾΪ£º''1981-02-12''
2,SQLÓï¾äÇø±ð£¬select ,update ÔÚ¶Ôµ¥±í²Ù×÷ʱ¶¼²î²»¶à£¬
µ«¶à±í²Ù×÷ʱupdateÓï¾äµÄÇø±ðACCESSÓëSQLSERVERÖеÄUpdateÓï¾ä¶Ô±È:
SQLSERVERÖиüжà±íµÄUpdateÓï¾ä:
Update Tab1
SET a.Name = b.Name
from Tab1 a,Tab2 b
Whe ......
¼´Ê¹ÎÒ½«Êý¾Ý¿â·ÅÔÚÏîÄ¿ÄÚ½¨µÄÎļþ¼ÐdbÏ£¬¿ÉÊǽøÐд洢²Ù×÷µÄʱºò£¬Êý¾Ý±íûÓÐÈκα仯¡£ºóÀ´·¢ÏÖ´¢´æ¸Ä±ä·¢ÉúÔÚbin\\debug\\dbĿ¼ÏµÄÊý¾Ý¿âÖУ¬Õâ¸öÊý¾Ý¿âÊÇÔÚ³ÌÐòÔËÐÐʱ×Ô¶¯¸´ÖƹýÈ¥µÄ£¬¿ÉÊÇΪʲô´æ´¢±ä»¯Ã»Óз´Ó¦µ½ÍâÃæÏîÄ¿ÄÚµÄÊý¾Ý¿âdbÏÂÄØ£¿ÎÒÏëÁ¬½Ó×Ö·û´®ÖÐdatasourceÖеÄdatadirectory´æÔÚһЩÐþ»ú£¬ÓÚÊÇÎÒÕÒµ½Ò ......
Õ⼸Ìì°ïͬѧ×öÒ»¸öСµÄ¹ÜÀíϵͳ£¬B/S½á¹¹µÄ£¬ÓÉÓںܾÃûÓÐ×öB/S½á¹¹µÄ¶«Î÷ÁË£¬×öµÄʱºòºÜÉúÊè¡£Ò»¸öÏÂÎ磬Óöµ½ÁËÒ»¸öÎÊÌ⣺ÍùAccessÀï²åÈëÊý¾ÝµÄʱºò£¬ÀÏÊÇÌáʾÎÒsqlÓï¾ä´íÎ󣬵«ÊǾͺÜÄÉÃÆÁË£¬ÕâÖÖsqlÓï¾äдÁ˲»ÏÂ500±éÁË°É£¬¾ÍËãÊÇ×öÃÎÒ²²»»áд´íµÄ£¬Ôõô»ØÊ£¿sqlÓï¾ ......
1.´ò¿ªSQL server enterprise mananger “ÆóÒµ¹ÜÀíÆ÷”
ÔÚÄãÒªµ¼³öµÄSQLÊý¾Ý¿âÉÏÊó±êÓÒ¼ü²Ëµ¥£ºËùÓÐÈÎÎñ-¡·µ¼³öÊý¾Ý
2.»Ø³öÏÖÒ»¸öµ¼³öÏòµ¼´°¿Ú¡£
Ñ¡Ôñ±»µ¼³öµÄÊý¾ÝÔ´£¬ÎªÄã¸Õ²ÅËùÑ¡ÔñµÄÊý¾Ý¿â£¬Èç¹û·¢ÏÖ²»¶ÔÓ¦×ÔÐÐÐ޸ġ£
3.½øÈëµ¼³öµ½Ä¿±êÊý¾ÝÔ´µÄÑ¡Ôñ£¬ÕâÀïÎÒÃÇҪת³ÉACCESSµÄÊý¾Ý¿â¡£×¢ÒâÑ¡ÔñÊý¾ÝÔ´ÀàÐÍÎ ......