Access������--
ËùÊô·ÖÀࣺ ¾«Ñ¡½Ì³Ì ×÷Õߣº ¹²ïí ¸üÐÂÈÕÆÚ£º2003-10-17 18:51:47 ÔĶÁ´ÎÊý£º540

MS Jet SQL for Access 2000Öм¶Æª (III)


Öм¶Êý¾Ý²Ù×ÝÓïÑÔ
¡¶»ù´¡Microsoft Jet SQL for Access 2000¡·Ò»ÎĸæËßÎÒÃÇÈçºÎʹÓÃSQLÀ´¼ìË÷ºÍ¹ÜÀí´æ´¢ÔÚÊý¾Ý¿âÖеÄÐÅÏ¢¡£±¾ÎĵĺóÃ沿·Ö½«ÌÖÂÛÖм¶Êý¾Ý²Ù×ÝÓïÑÔ£¨DML£©Óï¾ä£¬Õ⽫ʹµÃÓû§¿ÉÒÔ¸üºÃµÄ¿ØÖÆÐÅÏ¢¼ìË÷ºÍ´¦ÀíµÄ·½Ê½¡£

ν´Ê
ν´ÊÖ¸ÏÞ¶¨Ò»¸öSELECT Óï¾äµÄ×Ӿ䣬ͬWHERE ×Ó¾äÀàËÆ£¬µ«ÊÇν´ÊÊÇÔÚÊéдÁеÄÁбí֮ǰ¶¨ÒåµÄ¡£Î½´Ê»¹¿ÉÒÔ½øÒ»²½µÄÏÞÖÆÓû§ËùÌáÈ¡µÄ¼Ç¼¼¯£¬ÔÚijЩÇé¿öÏ£¬¹ýÂ˳öÈκοÉÄÜ´æÔÚµÄÖظ´Öµ¡£

ALL¹Ø¼ü×Ö
ÔÚSQLÓï¾äÖУ¬Èç¹ûûÓж¨ÒåÈκÎν´ÊµÄ»°£¬½«Ê¹ÓÃȱʡµÄALL¹Ø¼ü×Ö¡£ËüÒâζ×ÅËùÓеķûºÏSQLÓï¾äËùÉ趨µÄÌõ¼þµÄ¼Ç¼¶¼½«±»ÌáÈ¡³öÀ´¡£»Øµ½ÎÒÃǵķ¢Æ±Êý¾Ý¿âÖУ¬´Ó¹Ë¿Í±íÖÐÌáÈ¡ËùÓòµÄ¼Ç¼ÈçÏ£º

SELECT *
FROM tblCustomers


×¢Ò⾡¹ÜÕâÀïALL¹Ø¼ü´Ê²¢Ã»Óж¨Ò壬µ«ËüÊÇȱʡֵ¡£ÎÒÃÇÒ²¿ÉÒÔÈçÏÂÊéд¸ÃÓï¾ä£º

SELECT ALL *
FROM tblCustomers


DISTINCT¹Ø¼ü×Ö

DISTINCT¹Ø¼ü×ÖÓÃÀ´¿ØÖƽá¹û¼¯ÖÐÖظ´µÄÖµÈçºÎ½øÐд¦Àí£¬ÄÇЩ¶ÔÓÚÖ¸¶¨µÄÁÐÀ´ËµÓû§ÏàֵͬµÄÐн«±»¹ýÂ˵ô¡£Èç¹û¶àÓÚÖ¸¶¨µÄÁдóÓÚÒ»£¬ÔòËùÓÐÖ¸¶¨µÄÁеĽáºÏ½«×÷Ϊ¹ýÂËÌõ¼þ¡£ÀýÈ磬Èç¹ûÓû§²éѯCustomers±íÖÐÐÕÊϲ»Í¬µÄ¼Ç¼£¬Ôò·µ»ØµÄÖµ¶¼½«ÊÇΨһµÄ£¬ÈκÎÖظ´ÐÕÊϵÄÃû×Ö¶¼½«ÒÔ½á¹û¼¯ÖеÄÒ»¸ö¼Ç¼×÷ΪÆä½á¹û¡£

SELECT DISTINCT [Last Name]
FROM tblCustomers


ÓÈÆäҪעÒâµÄÊÇ£¬Ê¹ÓÃDISTINCT¹Ø¼ü×ֵIJéѯËù·µ»ØµÄ½á¹û¼¯²»ÄܸüУ¬¼´ÊÇÖ»¶ÁµÄ¡£

DISTINCTROW ¹Ø¼ü×Ö
DISTINCTROW ¹Ø¼ü×ÖºÍDISTINCT¹Ø¼ü×ÖÀàËÆ£¬µ«Ç°ÕßÊÇ»ùÓÚÕûÐжø·Ç¸ö±ðµÄÓòµÄ¡£ËûÖ»ÓÐÔÚ´¦Àí¶à¸ö±íʱ£¬²¢ÇÒÖ»ÓÐÔÚÓû§´Óij¼¸¸öµ«·ÇÈ«²¿µÄ±íÖÐÑ¡ÔñÊý¾ÝÓòʱ²ÅÊÇÓÐÓõġ£Èç¹ûÓû§µÄ²éѯÊÇ»ùÓÚÒ»¸ö±íµÄ£¬»òÕßÒª´ÓËùÓеıíÖÐÑ¡ÔñÊý¾ÝÓò£¬ÔòDISTINCTROW ¹Ø¼ü×Ö±¾ÖÊÉϺÍALL¹Ø¼ü×ÖÏàͬ¡£

ÀýÈ磬ÔÚÎÒÃǵķ¢Æ±Êý¾Ý¿âÖУ¬Ã¿¸ö¹Ë¿Í¶¼¿ÉÄÜûÓС¢ÓÐÒ»¸ö»ò¶à¸ö·¢Æ±¼Ç¼¡£¼ÙÉèÎÒÃÇÏ£ÍûÕÒ³öÓжàÉÙÓµÓжàÓÚÒ»ÕÅ·¢Æ±µÄ¹Ë¿Í£¬Õâʱ¿ÉÒÔʹÓÃDISTINCTROW¹Ø¼ü×ÖÀ´½øÐÐÑ¡Ôñ¡£

SELECT DISTINCTROW [Last Name], [First Name]
FROM tblCustomers INNER JOIN tblInvoices
ON tblCustomers.CustomerID = tblInvoices.CustomerID


Èç¹ûÎÒÃDz»Ê¹ÓÃDISTINCTROW ¹Ø¼ü×Ö£¬µÃµ½µÄ½«ÊÇÿ¸ö¹Ë¿ÍµÄËùÓз¢Æ±¼Ç¼µÄÐС££¨ÕâÀïµÄ INNER JOIN Óï¾ä½«ÔÚºóÃæµÄ²¿·Ö½²½â£©¡£

TOP¹Ø¼ü×Ö
TOP¹Ø¼ü×ÖÓÃÀ´·µ»Øͨ¹ýORDER BY×Ó¾äËùÖ¸¶¨µÄÊý¾ÝÐÐÖж¥²¿»òµ×²¿µÄijЩÐС£ORDER BY ×Ó¾äÓÃÀ´Ö¸¶¨ÕâЩÊý¾ÝÁÐÊÇÓÃÉýÐò»¹ÊǽµÐòÅÅÁС£Èç¹û´æÔÚÏàµÈÖµ£¬ÔòTOP¹Ø¼ü×Ö½«·µ»ØËùÓÐÖµÏàµÈµÄÐС£±ÈÈçÎÒÃÇÏ£ÍûÈ·¶¨ÎÒÃǵķ¢Æ±Êý¾Ý¿âÖÐ×î¸ß¶îµÄÈýÌõ·¢Æ±¼Ç¼£¬¿ÉÒÔÈçÏÂÊéдSQLÓï¾ä£º

SELECT TOP 3 InvoiceDate, Amount
FROM tblInvoices
ORDER BY Amount DESC


ÎÒÃÇÒ²¿ÉÒÔ½«PERCENT¹Ø¼ü×ÖºÍTOP¹Ø¼ü×ÖͬʱʹÓã¬À´·µ»ØÓÉORDER BY×Ó¾äËùÖ¸¶¨µÄÊý¾ÝÐÐÖж¥²¿»òµ×²¿µÄÒ»¶¨±ÈÀýµÄÐУ¬ÈçÏÂËùʾ£º

SELECT TOP 25 PERCENT InvoiceDate, Amount
FROM tblInvoices
ORDER BY Amount DESC


×¢ÒâÈç¹ûÓû§Ã»Óж¨ÒåORDER BY ×Ӿ䣬ÔòTOP¹Ø¼ü×Ö½«ºÁÎÞÒâÒ壬·µ»ØµÄÊÇËæ»ú²ÉÑùµÄһЩÐС£

ÒªÁ˽âÓйØν´ÊµÄ¸ü¶àÐÅÏ¢£¬ÇëÔÚOffice ÖúÊÖÖлòÔÚMicrosoft Access °ïÖúµÄ»Ø´ðÏòµ¼µÄ±êÇ©Ò³ÖÐÊäÈëALL¡¢DISTINCTµÈν´Ê£¬È»ºóµ¥»÷²éÕÒ¡£

SQL ±í´ïʽ
Ò»¸öSQL±í´ïʽ¾ÍÊÇ×÷ΪSQLÓï¾äµÄÒ»²¿·ÖµÄÒ»¸ö×Ö·û´®£¬²¢¿ÉÒԵõ½Ò»¸öÖµ¡£Äã¿ÉÒÔÈÎÒâ×éºÏÔËËã·û¡¢³£Êý¡¢ÎÄ×ÖÖµ¡¢º¯Êý¡¢ÓòÃû¡¢¿ØÖƺÍÊôÐÔÀ´½¨Á¢ÄãµÄSQL±í´ïʽ¡£¶ø" Microsoft Jet SQL for Access 2000¸ß¼¶°æ"Ò»ÎľÍÏòÄãÃèÊöÁËÈçºÎÔÚWHERE×Ó¾äÖÐʹÓñí´ïʽÀ´ÏÞÖÆSQLÓï¾ä£»¶øÇÒÔÚ±¾ÎÄËæºóµÄ²¿·Ö£¬ÎÒÃǽ«Ñ§Ï°¸÷ÖÖÄܹ»ÓÃÓÚ±í´ïʽµÄSQL²Ù×÷·û¡£

IN²Ù×÷
IN²Ù×÷ÊÇÓÃÀ´ÅжÏÒ»¸ö±í´ïʽµÄÖµÊÇ·ñÊôÓÚÒ»¸öÖ¸¶¨ÁбíÖеÄÖµ¡£Èç¹ûÕâ¸ö±í´ïʽµÈÓÚÁбíÖеÄÒ»¸öÖµ£¬IN²Ù×÷µÄ·µ»ØֵΪTrue¡£¶øµ±Ã»ÓÐÕÒµ½£¬IN²Ù×÷·µ»ØֵΪFalse¡£ÈÃÎÒÃǼÙÉèÎÒÃÇÏëÕÒµ½ËùÓÐסÔÚ»ªÊ¢¶ÙÖÝ»òÇÇÖÎÑÇÖݵÄÏúÊÛ²¿³ÉÔ±¡£ÎÒÃÇ¿ÉÒÔдһ¸ö´ø×ų¤³¤µÄWHERE ×Ӿ䣬²¢Ê¹ÓÃANDÂß¼­²Ù×÷·ûµÄSQLÓï¾ä£¬¶øʹÓÃIN²Ù×÷·û»áËõ¶ÌÎÒÃÇдµÄÓï¾ä¡£

SELECT *
FROM tblShipping
WHERE State IN (WA,GA)


ͨ¹ýʹÓÃNOTÂß¼­²Ù×÷·û£¬ÎÒÃÇ¿ÉÒÔ¼ìË÷³öIN²Ù×÷µÄ·´²Ù×÷½á¹û£¬Õâ¸öÓï¾ä»á·µ»ØËùÓв»×¡ÔÚ»ªÊ¢¶ÙÖݵÄÏúÊÛ²¿³ÉÔ±¡£

SELECT *
FROM tblShipping
WHERE State NOT IN (WA)


BETWEEN²Ù×÷

BETWEEN²Ù×÷ÓÃÓÚÅжÏÒ»¸ö±í´ïʽµÄÖµÊÇ·ñ½éÓÚÒ»¸öÌض¨µÄ·¶Î§Ö®¼ä¡£Èç¹ûÕâ¸ö±í´ïʽµÄÖµ½éÓÚÕâ¸öÌض¨·¶Î§Ö®¼ä£¬°üÀ¨·¶Î§¿ªÊ¼ºÍ½áÊøµÄÖµ£¬Õâ¸öBETWEEN²Ù×÷·µ»ØTrue¡£Èç¹ûÕâ¸ö±í´ïʽµÃÖµ²»ÊôÓÚÕâ¸ö·¶Î§£¬ÔòBETWEEN²Ù×÷·µ»ØֵΪFalse¡£¼ÙÉèÎÒÃÇÏëÕÒµ½ËùÒÔ½ð¶î½éÓÚ50ÃÀÔ²µ½100ÃÀÔ²Ö®¼äµÄËùÓз¢Æ±¡£ÎÒÃÇ×îºÃÔÚWHERE ×Ó¾äʹÓÃBETWEEN ²Ù×÷ÒÔ¼°¹Ø¼ü×ÖANDÉ趨·¶Î§¡£

SELECT *
FROM tblInvoices
WHERE Amount BETWEEN 50 and 100


ͨ¹ýʹÓÃNOTÂß¼­²Ù×÷·û£¬ÎÒÃÇ¿ÉÒÔ¼ìË÷³öBETWEEN²Ù×÷µÄ·´²Ù×÷½á¹û£¬ÕÒµ½²»ÔÚ·¶Î§ÖеÄËùÓз¢Æ±ÊýÁ¿¡£

SELECT *
FROM tblInvoices
WHERE Amount NOT BETWEEN 50 and 100


×¢ÒâÕâ¸ö·¶Î§¿ÉÒÔÉ趨ΪÏà·´µÄ˳Ðò²¢ÒÀ¾ÉµÃµ½ÏàͬµÄ½á¹û (BETWEEN 100 ºÍ 50)£¬µ«Ðí¶àµÄÊÊÓÃÓÚODBCµÄÊý¾Ý¿âÒªÇóÕâ¸ö·¶Î§×ñ´Ó´ÓÍ·µ½Î²µÄ˳Ðò¡£Èç¹ûÄãÉè¼ÆÄãµÄÓ¦ÓóÌÐò¿ÉÒÔ¼æÈÝ»òÉý¼¶ÎªÊÊÓÃÓÚODBCµÄÊý¾Ý¿â£¬Äã¾ÍÓ¦¸Ã×ÜÊÇ°´ÕÕ´ÓÍ·µ½Î²µÄ·½·¨Ê¹Óá£

LIKE²Ù×÷
LIKE ²Ù×÷operator is used to determine if the value of an expression compares to that of a pattern. Ò»¸öÑùʽ¾ÍÊǾÍÊÇÒ»¸öÍêÈ«µÄ×Ö·û´®»òÊÇÒ»¸ö°üº¬ÓÐÒ»¸ö»ò¶à¸öͨÅä·ûµÄ²¿·Ö×Ö·û´®¡£Í¨¹ýʹÓÃLIKE ²Ù×÷£¬Äã¿ÉÒÔÔÚÒ»¸ö½á¹û¼¯Àï²éÕÒÒ»¸öÓò²¢ÕÒµ½ËùÓзûºÏÌØÊâµÄÑùʽµÄÖµ¡£

SELECT *
FROM tblCustomers
WHERE [Last Name] LIKE Johnson


ΪÁË·µ»ØËùÓеÄÃû×ÖÒÔ×ÖĸJ¿ªÍ·µÄ¹Ë¿Í£¬ÎÒÃÇʹÓÃÐǺÅͨÅä·û¡£

SELECT *
FROM tblCustomers
WHERE [Last Name] LIKE J*


ͨ¹ýʹÓÃNOTÂß¼­²Ù×÷·û£¬ÎÒÃÇ¿ÉÒÔ¼ìË÷³öLIKE²Ù×÷µÄ·´²Ù×÷£¬²¢ÔÚÁбíÖйýÂ˵ôËùÓÐµÄ Johnsons¡£

SELECT *
FROM tblCustomers
WHERE [Last Name] NOT LIKE Johnson


ÄãÔÚLIKE ²Ù×÷ÑùʽÀï¿ÉÒÔʹÓöàÖÖͨÅä·û£¬ÈçϱíËùʾ£º

ͨÅä·û
ÃèÊö

*£¨ÐǺţ©
Æ¥ÅäËùÓÐ×Ö·û²¢¿ÉÒÔ±»ÓÃÔڽṹ×Ö·û´®µÄÈκÎλÖá£

%£¨°Ù·ÖºÅ£©
ÅúÆÀÈκÎ×Ö·û²¢¿ÉÒÔ±»ÓÃÔڽṹ×Ö·û´®µÄÈκÎλÖá£(Ö»ÊÊÓÃÓÚADO ºÍ the Jet OLE DB provider)

?£¨Îʺţ©
Æ¥ÅäÈκε¥¸ö×Ö·û²¢¿ÉÒÔ±»ÓÃÔڽṹ×Ö·û´®µÄÈκÎλÖá£

_£¨Ï»®Ïߣ©
Æ¥ÅäÈκε¥¸ö×Ö·û²¢¿ÉÒÔ±»ÓÃÔڽṹ×Ö·û´®µÄÈκÎλÖá£(Ö»ÊÊÓÃÓÚADO ºÍ the Jet OLE DB provider)

#£¨Êý×Ö·ûºÅ£©
Æ¥ÅäÈκε¥¸öÊý×Ö²¢¿ÉÒÔ±»ÓÃÔڽṹ×Ö·û´®µÄÈκÎλÖá£

[]£¨·½À¨ºÅ£©
Æ¥ÅäÈκα»°üÀ¨ÔÚ·½À¨ºÅÀïÃæµÄµ¥¸ö×Ö·û£¬²¢¿ÉÒÔ±»ÓÃÔڽṹ×Ö·û´®µÄÈκÎλÖá£

!£¨¸Ð̾ºÅ£©
Æ¥ÅäÈκβ»ÊôÓÚ±»·½À¨ºÅËù°üº¬µÄ×Ö·ûÁбíÖеĵ¥¸ö×Ö·û¡£Matches any single character not in the list that is enclosed within the square brackets.

-£¨Á¬×Ö·û£©
Æ¥ÅäÈκÎÒ»¸öÔÚ·½À¨ºÅÖеÄ×Ö·û¡£


×¢Òâ: ÉϱíËùÊöµÄ¡°%¡±ºÍ¡°_¡±Í¨Åä·ûÖ»ÄÜͨ¹ýJet OLE DB provider »ò ADOÔËÐС£Èç¹ûͨ¹ý. Access SQL View Óû§½çÃæÔËÐÐËüÃǽ«»ñµÃÒ»¸ö¿ÕµÄ½á¹û¼¯¡£

Èç¹ûÄãÏëµÃµ½¸ü¶àµÄͨÅä·ûµÄÐÅÏ¢£¬ÔÚOffice ÖúÀí»ò΢ÈíAccess°ïÖú´°ÌåµÄAnswer Wizard±êÖ¾ÖÐÊäÈëwildcard characters£¬²¢µ¥»÷Search¡£

IS NULL ²Ù×÷·û
¿ÕÖµ¾ÍÊÇÖ¸ÎÞÖµ»ò²»¿ÉÖªÖµ¡£IS NULL²Ù×÷·û±»ÓÃÓÚÅжÏÒ»¸ö±í´ïʽµÄÖµÊÇ·ñºÍÒ»¸ö¿ÕÖµÏàµÈ¡£

SELECT *
FROM tblInvoices
WHERE Amount IS NULL


ͨ¹ýÌí¼ÓNOTÂß¼­²Ù×÷·û£¬ÎÒÃÇ¿ÉÒÔ¼ìË÷IS NULL²Ù×÷·ûµÄ·´²Ù×÷¡£ÔÚÕâ¸öÀý×ÓÀSQLÓï¾ä½«»á³ýµôËùÓаüº¬¶ªÊ§µÄ»òδֵ֪µÄ·¢Æ±¼Ç¼¡£

SELECT *
FROM tblInvoices
WHERE Amount IS NOT NULL

SELECT INTO Óï¾ä
SELECT INTO Óï¾ä£¬Ò²¿ÉÒÔÀí½âΪһ¸ö±íµ¥´´½¨²éѯ£¬¿ÉÒÔÓÃÀ´´ÓÒ»¸ö»ò¶à¸öÒÑ´æÔÚ¹¤×÷±íÖд´½¨Ò»¸öÐµĹ¤×÷±í¡£ËüËù´´½¨µÄ¹¤×÷±í¿ÉÒÔ»ùÓÚÈκÎÓÐЧµÄSELECTÓï¾ä¡£SELECT INTO Óï¾ä¿ÉÒÔÓÃÀ´´æ´¢¼Ç¼¡¢´´½¨±¸·Ý±íµ¥»òÔÚÒ»¸öÍⲿÊý¾Ý¿âÀï´´½¨ÐµĹ¤×÷±í¡£

µ±ÄãÓÃSELECT INTO Óï¾ä´´½¨Ò»¸öй¤×÷±íʱ£¬ËùÓеÄй¤×÷±íÀïµÄÓò¶¼¼Ì³ÐÓÚԭʼ¹¤×÷±í¡£È»¶ø£¬²»°üÀ¨ÆäËûµÄ¹¤×÷±íÊôÐÔ£¬ÈçÖ÷¹Ø¼ü×Ö»òË÷Òý¶¼ÊÇÔÚй¤×÷±íÖб»´´½¨¡£Ò»µ©ÐµĹ¤×÷±í±»´´½¨£¬Ä㵱Ȼ¿ÉÒÔʹÓÃALTER TABLEÓï¾äÌí¼ÓÕâЩÊôÐÔ¡£

Èç¹ûÄãÒª´´½¨Ò»¸öÐµĹ¤×÷±í£¬¿ÉÒÔʹÓÃÒ»¸ö´øÓÐÄãÏ£ÍûÔÚ¹¤×÷±íÖÖ°üº¬µÄÁеÄÓòÁбíºÍÄãй¤×÷±íµÄÃû³ÆµÄSELECT INTO Óï¾ä£¬²¢ÔÚFROM×Ó¾äÀïÌṩÊý¾Ý×ÊÔ´¡£

SELECT *
INTO tblNewCustomers
FROM tblCustomers


ΪÁËΪÐµĹ¤×÷±íÖ¸¶¨È·¶¨µÄÓò£¬°ÑÓòÃûÁбíÀïµÄԭʼ¹¤×÷±íµÄÓòÃûÓÃÐǺŴúÌ棬²¢ÓÃAS¹Ø¼ü×ÖÀ´ÃüÃûÐµĹ¤×÷±íÖеĸ÷ÁС£

SELECT [First Name] & & [Last Name] AS FullName
INTO tblNewCustomerNames
FROM tblCustomers


Èç¹ûÒªÔÚÒ»¸öÒѾ­´æÔÚµÄÍⲿÊý¾Ý¿âÀï´´½¨ÐµĹ¤×÷±í£¬Äã¿ÉÒÔÓÃIN¹Ø¼ü×Ö¡£Èç¹ûÍⲿÊý¾Ý¿â²»´æÔÚ£¬SELECT INTO Óï¾ä½«»á·µ»ØÒ»¸ö´íÎóÐÅÏ¢¡£

SELECT *
INTO tblNewCustomers
IN C:\Customers.mdb
FROM tblCustomers


×Ó²éѯ
×Ó²éѯ¾ÍÊÇÔÚÓÃÔÚÁíÒ»¸öSELECT¡¢SELECT INTO¡¢INSETT INTO ¡¢DELETE »òUPDATEÓï¾äÄÚ²¿µÄSELECTÓï¾ä¡£Ëü¿ÉÒÔ°ïÖúÄã¶Ô»ùÓÚÁíÒ»¸ö½á¹û¼¯µÄ½á¹û½øÐнøÒ»²½µÄÏÞÖÆ¡£Õâ½Ð×öǶÈ룬²¢ÇÒÒòΪһ¸ö×Ó²éѯ¾ÍÊÇÒ»¸öSELECTÓï¾ä£¬ÄãÒ²¿ÉÒÔ°ÑÒ»¸ö×Ó²éѯǶÈëµ½ÁíÒ»¸ö×Ó²éѯÀïÃæ¡£µ±ÄãÔÚÒ»¸öSQLÓï¾äÖÐʹÓÃÒ»¸ö×Ó²éѯµÄʱºò£¬Ëü¿ÉÒÔ×÷Ϊһ¸öÓòÁÐ±í¡¢WHERE×Ó¾ä»òÕßHAVING×Ó¾äµÄÒ»²¿·Ö¡£

ÕâÀïÓÉÈýÖÖ»ù±¾µÄ×Ó²éѯÐÎʽ£¬²¢ÇÒÿÖÖ¶¼Ê¹Óò»Í¬ÖÖÀàµÄν´Ê¡£

IN×Ó²éѯ
IN ×Ó²éѯÓÃÓÚ¼ìË÷ÕâÑùµÄÒ»×éÖµ£¬¼´ÆäÖмǼµÄijһÁеÄÖµ¶¼ÎªÁíÒ»¸ö¹¤×÷±í»ò²éѯÖеÄÒ»ÁеÄÖµ°üº¬¡£Ëü´ÓÆäËü¹¤×÷±íÖÐÖ»ÄÜ·µ»ØÒ»ÁУ¬ÕâÊÇÒ»¸öÏÞÖÆÌõ¼þ¡£Èç¹û·µ»ØµÄ¶àÓÚÒ»Áоͻá²úÉúÒ»¸ö´íÎó¡£Ê¹Ó÷¢Æ±Êý¾Ý¿âÀý×Ó£¬ÎÒÃÇ¿ÉÒÔд³öÒ»¸ö·µ»ØËùÓÐÓµÓз¢Æ±µÄ¹Ë¿ÍµÄÁбíµÄ£Ó£Ñ£ÌÓï¾ä¡£

SELECT *
FROM tblCustomers
WHERE CustomerID
IN (SELECT CustomerID FROM tblInvoices)


ͨ¹ýʹÓÃNOTÂß¼­²Ù×÷·û£¬ÎÒÃÇ¿ÉÒÔ¼ìË÷ºÍ£É£Î×Ó²éѯÏà·´µÄ¼Ç¼£¬´Ó¶ø¿ÉÒÔ»ñµÃËùÓÐûÓÐÈκη¢Æ±µÄ¹Ë¿ÍÁÐ±í¡£

SELECT *
FROM tblCustomers
WHERE CustomerID
NOT IN (SELECT CustomerID FROM tblInvoices)


ANY/SOME/ALL×Ó²éѯ

ANY¡¢ SOMEºÍALL×Ó²éѯν´Ê±»ÓÃÓڱȽÏÖ÷²éѯµÄ¼Ç¼ºÍ×Ó²éѯµÄ¶à¸öÊä³ö¼Ç¼¡£ANY ºÍ SOMEν´ÊÊÇͬÒå´Ê²¢¿ÉÒÔ±»Ì滻ʹÓá£

µ±ÄãÐèÒª´ÓÖ÷²éѯÖмìË÷ÈκηûºÏÔÚ×Ó²éѯÖÐÂú×ã±È½ÏÌõ¼þµÄ¼Ç¼ʱ¿ÉÒÔʹÓÃANY»ò SOMEν´Ê¡£Î½´ÊÓ¦¸ÃÇ¡ºÃ·ÅÔÚ×Ó²éѯ¿ªÊ¼µÄÀ¨ºÅÇ°Ãæ¡£

SELECT *
FROM tblCustomers
WHERE CustomerID = ANY
(SELECT CustomerID FROM tblInvoices)


×¢ÒâÓÉÉÏÃæSQLÓï¾äËù·µ»ØµÄ½á¹û¼¯ºÍIN×Ó²éѯÀý×ÓËù·µ»ØµÄÄǸöÏàͬ¡£¶øÓëANYºÍSOMEν´ÊµÄ²»Í¬Ö®´¦¾ÍÔÚÓÚËüÃǶ¼¿ÉÒÔʹÓõÈÓÚ£¨=£©ÒÔÍâµÄ²Ù×÷·û£¬±ÈÈç´óÓÚ£¨>£©ºÍСÓÚ£¨<£©¡£

SELECT *
FROM tblCustomers
WHERE CustomerID > ANY
(SELECT CustomerID FROM tblInvoices)


µ±ÎÒÃÇÏëÔÚÖ÷²éѯÖмìË÷Âú×ã×Ó²éѯ±È½ÏÌõ¼þµÄËùÓмǼʱʹÓÃν´ÊALL¡£

SELECT *
FROM tblCustomers
WHERE CustomerID > ALL
(SELECT CustomerID FROM tblInvoices)


EXISTS×Ó²éѯ

EXISTSν´ÊÊÇÓÃÓÚ×Ó²éѯÀ´ÔÚÒ»¸ö½á¹û¼¯Öмì²éËùÒÔ´æÔÚÖµµÄ¼Ç¼¡£»»¾ä»°Ëµ£¬¾ÍÊÇÈç¹û×Ó²éѯûÓзµ»ØÈκÎÐУ¬Õâ¸ö±È½Ï¾ÍFalse¡£¶øÈç¹ûËü·µ»ØÁËÒ»Ðлò¶àÐУ¬Õâ¸ö±È½Ï¾ÍΪTrue¡£

SELECT *
FROM tblCustomers AS A
WHERE EXISTS
(SELECT * FROM tblInvoices
WHERE A.CustomerID = tblInvoices.CustomerID)


×¢ÒâÔÚÇ°ÃæµÄSQL Óï¾äÀ tblCustomers ¹¤×÷±íʹÓÃÁËÒ»¸ö±ðÃû¡£Õâ¾ÍÊÇΪºÎÎÒÃÇ¿ÉÒÔÔÚºóÀ´µÄ×Ó²éѯÖÐÒýÓÃËüµÄÔ­Òò¡£µ±Ò»¸ö×Ó²éѯÒÔÕâÖÖ¸ñʽÓëÒ»¸öÖ÷²éѯÁª½Óʱ¾Í³ÆÏà¹Ø²éѯ¡£

ͨ¹ýʹÓÃNOTÂß¼­²Ù×÷·û£¬ÎÒÃÇ¿ÉÒÔ¼ìË÷ºÍEXISTS×Ó²éѯÏà·´µÄ¼Ç¼£¬´Ó¶ø¿ÉÒԵõ½ËùÓÐûÓÐÈκη¢Æ±µÄ¹Ë¿ÍµÄ½á¹û¼¯¡£

SELECT *
FROM tblCustomers AS A
WHERE NOT EXISTS
(SELECT * FROM tblInvoices
WHERE A.CustomerID = tblInvoices.CustomerID)


Èç¹ûÄãÏëµÃµ½¸ü¶àµÄ¹ØÓÚ×Ó²éѯµÄÐÅÏ¢£¬ÔÚOffice ÖúÀí»ò΢ÈíAccess°ïÖú´°ÌåµÄAnswer Wizard±êÖ¾ÖÐÊäÈëSQL subqueries £¬²¢µ¥»÷Search¡£

Á¬½Ó
ÔÚÒ»¸öÈçͬAccessµÄÏà¹ØÊý¾Ý¿âϵͳÖУ¬Äã»á³£³£ÐèҪͬʱ´Ó¶à¸ö¹¤×÷±íÖÐÕª³öÐÅÏ¢¼Ç¼¡£Õâ¿ÉÒÔͨ¹ýʹÓÃÒ»¸öSQL JOINÓï¾äÀ´ÊµÏÖ¡£JOINÓï¾ä¿ÉÒÔÈÃÄã´ÓÒѾ­¶¨ÒåÁËÏ໥¹ØϵµÄ¹¤×÷±íÖмìË÷¼Ç¼£¬¶ø²»ÓùܼǼºÍ¹¤×÷±íÖ®¼äµÄ¹ØϵÊÇÒ»¶ÔÒ»¡¢Ò»¶Ô¶à»¹ÊǶà¶Ô¶à¡£

ÄÚ²¿Á¬½Ó
ÄÚ²¿Á¬½Ó£¬Ò²±»Àí½âΪ¶ÔµÈÁ¬½Ó£¬¾ÍÊDZ»Ê¹ÓõÄÁ¬½ÓÀï×îÒ»°ãµÄÐÎʽ¡£ÕâÖÖÁ¬½Óͨ¹ýÆ¥ÅäÒ»¸ö¸÷¸ö¹¤×÷±íÖй²ÓеÄÓòÖµÀ´´ÓÁ½¸ö»ò¸ü¶àµÄ¹¤×÷±íÖмìË÷¼Ç¼¡£ÄãËùÁ¬½ÓµÄÓò±ØÐë¾ßÓÐÀàËƵÄÊý¾ÝÀàÐÍ£¬µ«Äã¾Í²»ÄܶÔMOMOºÍOLEOBJECTÊý¾ÝÀàÐͽøÐÐÁ¬½Ó¡£ÎªÁ˽¨Á¢Ò»¸öINNER JOINÓï¾ä£¬ÔÚSELECTÓï¾äµÄFROM×Ó¾äÀïʹÓÃINNER JOIN¹Ø¼ü×Ö¡£ÈÃÎÒÃÇʹÓÃINNER JOIN ½¨Á¢ËùÓÐÓµÓз¢Æ±µÄ¹Ë¿ÍµÄ½á¹û¼¯£¬²¢´øÉÏÄÇЩ·¢Æ±µÄʱ¼äºÍ½ð¶î¡£

SELECT [Last Name], InvoiceDate, Amount
FROM tblCustomers INNER JOIN tblInvoices
ON tblCustomers.CustomerID=tblInvoices.CustomerID
ORDER BY InvoiceDate


×¢Ò⹤×÷±íÃû±»INNER JOIN¹Ø¼ü×ÖËù·Ö¿ª£¬²¢ÇÒÏà¹ØµÄ±È½ÏÊÇÔÚON¹Ø¼ü×ֵĺóÃæ¡£¶ÔÓÚÏà¹ØµÄ±È½Ï£¬ÄãÒ²¿ÉÒÔʹÓÃ<¡¢ >¡¢ <=¡¢ >=»ò <> ²Ù×÷·û£¬²¢ÇÒÄãÒ²¿ÉÒÔʹÓÃBETWEEN¹Ø¼ü×Ö¡£Í¬Ê±×¢Òâ¸÷¸ö¹¤×÷±íÖ»ÔڱȽϹØϵÖÐʹÓõÄIDÓò£¬ËüÃǶ¼²»ÊÇ×îºó½á¹û¼¯µÄ×é³É¡£

Èç¹ûÒª½øÒ»²½µÄÏÞÖÆSELECT Óï¾äÎÒÃÇ¿ÉÒÔÔÚON×Ó¾äÖеıȽÏÁ¬½ÓºóÃæʹÓÃWHERE×Ӿ䡣ÔÚÏÂÃæµÄÀý×ÓÖÐÎÒÃÇͨ¹ýÖ»°üÀ¨1998Äê1ÔÂ1ÈÕÒÔºóµÄ·¢Æ±À´ËõС½á¹û¼¯¡£

SELECT [Last Name], InvoiceDate, Amount
FROM tblCustomers INNER JOIN tblInvoices
ON tblCustomers.CustomerID=tblInvoices.CustomerID
WHERE tblInvoices.InvoiceDate > #01/01/1998#
ORDER BY InvoiceDate


ÔÚÏ£ÍûÁ¬½Ó¶à¸ö¹¤×÷±íµÄ°¸ÀýÖУ¬Äã¿ÉÒÔǶÈëINNER JOIN×Ӿ䡣ÔÚÕâ¸öÀý×ÓÀÎÒÃǽ«ÔÚ¹ýÈ¥µÄÒ»¸öSELECTÓï¾äµÄ»ù´¡ÉϲúÉúÎÒÃǵĽá¹û¼¯£¬µ«ÎÒÃÇÒ²½«Í¨¹ýΪtblShipping¹¤×÷±íÌí¼ÓINNER JOINʹ½á¹û°üÀ¨Ã¿¸ö¹Ë¿ÍµÄËùÔÚ³ÇÊк͹ú¼Ò¡£

SELECT [Last Name], InvoiceDate, Amount, City, State
FROM (tblCustomers INNER JOIN tblInvoices
ON tblCustomers.CustomerID=tblInvoices.CustomerID)
INNER JOIN tblShipping
ON tblCustomers.CustomerID=tblShipping.CustomerID
ORDER BY InvoiceDate


×¢ÒâµÚÒ»¸öJOIN×Ó¾äΪԲÀ¨ºÅËù°üº¬ÒÔʹ֮´ÓÂß¼­ÉϺ͵ڶþ¸öJOIN×Ó¾ä·Ö¿ª¡£¶øÔÚFROM×Ó¾äÖÐʹÓÃÒ»¸öµÚ¶þ¸ö¹¤×÷±íµÄ±ðÃû°ÑÒ»¸ö¹¤×÷±íÁ¬½Óµ½×ÔÉíÒ²ÊÇ¿ÉÄܵġ£ÈÃÎÒÃǼÙÉèÎÒÃÇÏëÕÒµ½ËùÓоßÓÐÏàͬµÄÃûµÄ¹Ë¿Í¼Ç¼¡£ÎÒÃÇ¿ÉÒÔͨ¹ýΪµÚ¶þ¸ö¹¤×÷±í´´½¨Ò»¸ö±ðÃû¡°A¡±²¢²éÕÒÆäÐÕÊϲ»Í¬µÄ¼Ç¼À´ÊµÏÖ¡£

SELECT tblCustomers.[Last Name],
tblCustomers.[First Name]
FROM tblCustomers INNER JOIN tblCustomers AS A
ON tblCustomers.[Last Name]=A.[Last Name]
WHERE tblCustomers.[First Name]<>A.[First Name]
ORDER BY tblCustomers.[Last Name]


ÍⲿÁ¬½Ó

ÍⲿÁ¬½ÓÊÇÔÚµ±¼Ç¼±£´æÔÚijһ¸ö¹¤×÷±íÖÐʱÓÃÓÚÔÚ¶à¸ö¹¤×÷±í½øÐмǼ¼ìË÷£¬¼´Ê¹ÔÚÆäËüµÄ¹¤×÷±íÖÐûÓÐÆ¥ÅäµÄ¼Ç¼ҲÐС£Jet Êý¾Ý¿âÒýÇæ¹²Ö§³ÖÁ½ÖÖÀàÐ͵ÄÍⲿÁ¬½Ó¡£¿¼ÂÇÁ½¸ö»¥ÏàÏà½üµÄ¹¤×÷±í£¬Ò»¸öÔÚ×ó±ß£¬ÁíÒ»¸öÔÚÓұߡ£×óÍⲿÁ¬½Ó½«ÔÚÓÒ¹¤×÷±íÖÐÑ¡ÔñËùÓÐÆ¥Åä±È½Ï¹Øϵ±ê×¼µÄËùÓÐÐкÍ×ó¹¤×÷±íÖеÄËùÓÐÐУ¬¼´Ê¹ÔÚÓÒ¹¤×÷±íÖÐûÓÐÆ¥Åä¼Ç¼´æÔÚ¡£¶øÓÒÍⲿÁ¬½ÓÔòÊÇ×óÍⲿÁ¬½ÓµÄ¼òµ¥·´×ª£»¼´ËùÓÐÔÚÓÒ¹¤×÷±íÖеÄÐн«±»±£´æ¡£

×÷Ϊһ¸öÀý×Ó£¬ÈÃÎÒÃǼÙÉèÎÒÃÇÏë²â¶¨Ã¿¸ö¹Ë¿ÍµÄËùÓз¢Æ±ÊýÁ¿£¬µ«Èç¹ûÒ»¸ö¹Ë¿ÍûÓз¢Æ±£¬ÎÒÃÇÏ£Íûͨ¹ýÏûÏ¢¡°NONE¡±À´ÏÔʾÆäÐÅÏ¢¡£

SELECT [Last Name] & , & [First Name] AS Name,
IIF(Sum(Amount) IS NULL,NONE,Sum(Amount)) AS Total
FROM tblCustomers LEFT OUTER JOIN tblInvoices
ON tblCustomers.CustomerID=tblInvoices.CustomerID
GROUP BY [Last Name] & , & [First Name]


ÔÚÇ°ÃæµÄSQLÓï¾äÖÐÈÔÈ»Óм¸¸öÎÊÌâ¡£µÚÒ»¸öÊǶÔ×Ö·û´®Á¬½Ó²Ù×÷·û¡°&¡±µÄʹÓã¬Õâ¸ö²Ù×÷·ûÔÊÐíÄã°ÑÁ½¸ö»ò¸ü¶àµÄÓòÁ¬½Óµ½Ò»Æð×é³ÉÒ»¸ö×Ö·û´®¡£µÚ¶þ¸öÊÇ immediate if(IIF)Óï¾ä£¬Ëü»á¼ì²éºÏ²¢ºóµÄ×Ö·û´®ÊÇ·ñΪ¿Õ¡£Èç¹ûΪ¿Õ£¬Õâ¸öÓï¾ä½«·µ»ØÏûÏ¢¡°NONE¡±£¬¶øÈç¹û×éºÏ²»ÊÇ¿Õ£¬½«·µ»Ø×éºÏºóµÄÖµ¡£×îºóÒ»µãÊÇÍⲿÁ¬½Ó×Ӿ䡣ʹÓÃ×óÍⲿÁ¬½Ó±£´æ×ó¹¤×÷±íµÄÐдӶøÈÃÎÒÃÇ¿ÉÒÔ¿´µ½ËùÓеĹ˿ͣ¬°üÀ¨ÄÇЩûÓз¢Æ±ÔÚÕÊÄ¿Öеġ£

ÔÚÒ»¸ö¶à¹¤×÷±íµÄÁ¬½ÓÖÐÍⲿÁ¬½Ó¿ÉÒÔ±»Ç¶Ì×ÔÚÄÚ²¿Á¬½ÓÀµ«ÄÚ²¿Á¬½Ó²»¿ÉÒÔ±»Ç¶Ì×ÔÚÍⲿÁ¬½ÓÖС£

µÑ¿¨¶ù³Ë»ý
µ±ÎÒÃÇÌÖÂÛÁª½Óʱ³£³£Óöµ½µÄÒ»¸öÊõÓïÊǵѿ¨¶ù³Ë»ý¡£µÑ¿¨¶ù³Ë»ýµÄ¶¨ÒåΪ¡°°ÑËùÓÐ±íµ¥µÄËùÓÐÐÐÍêÈ«ºÏ²¢¡±¡£ÀýÈ磬Èç¹ûÄãÏë²»ÓÃÈκÎÔ¼Êø°ÑÁ½¸ö¹¤×÷±íÁªºÏÔÚÒ»Æð£¬Äã¾ÍÍê³ÉÁËÒ»¸öµÑ¿¨¶ù³Ë»ý¡£

SELECT *
FROM tblCustomers, tblInvoices


Õâ²»ÊÇÒ»¸öºÃ¶«Î÷£¬Ìرðµ±ÄãÒª´¦ÀíµÄ¹¤×÷±íÖаüº¬ÓгɰÙÉÏǧÐÐÊý¾Ýʱ¡£ËùÒÔÄãÓ¦¸Ãͨ¹ýÔ¼ÊøÄãµÄÁ¬½ÓÀ´±ÜÃâµÑ¿¨¶ù³Ë»ý¡£

The UNION operator
ËäÈ»UNION µÄ²Ù×÷Ò²¿ÉÒÔÊÓΪһ¸öºÏ²¢²éѯ£¬µ«ÎÒÃDz»¿ÉÒÔ¼¼ÊõÐԵذÑËü¿´×÷ÊÇÒ»¸öÁª½Ó£¬ËüÖ®ËùÒÔ±»Ìáµ½ÊÇÒòΪËüÄÜ°Ñ´Ó¶à¸öÀ´Ô´»ñµÃµÄÊý¾ÝºÏ³ÉÒ»¸ö½á¹û±íµ¥ÖУ¬¶øÕâÒ»µãºÍijЩÀàÐ͵ÄÁª½ÓÊÇÀàËƵġ£UNION ²Ù×÷Ò»°ã±»ÓÃÀ´°ÑÀ´×Ô±íµ¥¡¢SELECTÓï¾ä»ò²éѯµÄÊý¾Ý½áºÏ£¬²¢Ê¡ÂÔµôÈκÎÖظ´µÄÐС£ËùÓеÄÊý¾ÝÔ´±ØÐëÓÐÏàͬÊýÄ¿µÄÓò£¬²»¹ýÕâЩÓò²»Ò»¶¨ÒªÊÇÏàͬµÄÊý¾ÝÀàÐÍ¡£ÈÃÎÒÃǼÙÉèÎÒÃÇÓÐÒ»¸ö¹ÍÔ±±íµ¥£¬ÆäÖоßÓк͹˿͹¤×÷±íµ¥ÏàͬµÄ½á¹¹£¬ÄÇôÎÒÃÇÏ£ÍûºÏ²¢ÕâÁ½¸ö¹¤×÷±íµÃµ½Ò»¸öÐÕÃûºÍµç×ÓÓʼþµØÖ·ÐÅÏ¢µÄÁÐ±í¡£

SELECT [Last Name], [First Name], Email
FROM tblCustomers
UNION
SELECT [Last Name], [First Name], Email
FROM tblEmployees


Èç¹ûÄãÏ£ÍûÕÒµ½ÕâЩ±íÖеÄËùÓÐÓò£¬ÎÒÃÇ¿ÉÒÔʹÓÃTABLE¹Ø¼ü×Ö£¬ÈçͬÏÂÃæÒ»Ñù£º

TABLE tblCustomers
UNION
TABLE tblEmployees


UNION²Ù×÷²»»áÏÔʾÈκÎÔÚÁ½¸ö±íµ¥ÖÐÖظ´³öÏֵļǼ£¬µ«Ëü¿ÉÒÔͨ¹ýÔÚUNION¹Ø¼ü×ÖºóʹÓÃν´ÊALLÀ´¸²¸ÇÖظ´ÐÅÏ¢£¬ÈçÏÂËùʾ£º

SELECT [Last Name], [First Name], Email
FROM tblCustomers
UNION ALL
SELECT [Last Name], [First Name], Email
FROM tblEmployees


ת»»Óï¾ä

ËäȻת»»Óï¾äÒ²¿ÉÒÔÊÓΪһ¸ö½»²æ±í²éѯ£¬µ«ÎÒÃDz»¿ÉÒÔ¼¼ÊõÐԵذÑËü¿´×÷ÊÇÒ»¸öÁª½Ó£¬ËüÖ®ËùÒÔ±»Ìáµ½ÊÇÒòΪËüÄÜ°Ñ´Ó¶à¸öÀ´Ô´»ñµÃµÄÊý¾ÝºÏ³ÉÒ»¸ö½á¹û±íµ¥ÖУ¬¶øÕâÒ»µãºÍijЩÀàÐ͵ÄÁª½ÓÊÇÀàËƵġ£

TRANSFORM Óï¾äͨ³£ÓÃÓÚ¼ÆËã×ÜÊý¡¢Æ½¾ùÖµ¡¢ÊýÄ¿ÒÔ¼°ÆäËü¶Ô¼Ç¼½øÐÐ×ÜÌåͳ¼ÆµÄËã·¨¡£²¢ÔÚ¼ÆËãºó°Ñ½á¹ûÐÅÏ¢ÏÔʾÔÚÒ»¸ö¸ñ×Ó»òÊý¾Ý±íÖУ¬ÆäÖеÄÊý¾Ý·Ö±ð°´ÕÕÐкÍÁÐÅÅÁС£Ò»¸öTRANSFORM Óï¾äµÄÒ»°ãÐÎʽÈçÏ£º

TRANSFORM aggregating function
SELECT Statement
PIVOT column heading field


ÎÒÃǼÙÉèÎÒÃÇ¿ÉÒÔ½¨Á¢Ò»¸ö°´ÕÕÿһÄêΪ»ù´¡ÏÔʾÿ¸ö¹Ë¿ÍµÄËùÓз¢Æ±µÄÊý¾Ý±í¡£Õâ¸öÁÐÃûÓ¦¸ÃÊǹ˿͵ÄÐÕÃû£¬¶øÐÐÃûÔò½«ÊÇÄê·Ý¡£ÈÃÎÒÃÇÐÞ¸ÄÔ­À´µÄSQLÓï¾äÒÔ·ûºÏת±äºóµÄÓï¾ä.

TRANSFORM
IIF(Sum([Amount]) IS NULL,NONE,Sum([Amount]))
AS Total
SELECT [Last Name] & , & [First Name] AS Name
FROM tblCustomers LEFT JOIN tblInvoices
ON tblCustomers.CustomerID=tblInvoices.CustomerID
GROUP BY [Last Name] & , & [First Name]
PIVOT Format(InvoiceDate, yyyy)
IN (1996,1997,1998,1999,2000)


×¢ÒâSUMº¯ÊýÊǺϼƺ¯Êý£¬×éÀïµÄÁеÄÌâÍ·ÓÃÔÚSELECT Óï¾äµÄ×Ó¾äÀ¶øÐеÄÃû×ÖÓÉPIVOT¹Ø¼ü×ÖºóËùÁгöµÄÓòÃû¾ö¶¨¡£

Èç¹ûÄãÏëÖªµÀ¹ØÓÚÁ¬½ÓµÄ¸ü¶àÐÅÏ¢£¬ÔÚOffice ÖúÀí»ò΢ÈíAccess°ïÖú´°ÌåµÃAnswer Wizard±êÖ¾ÖÐÊäÈëSQL joins£¬²¢µ¥»÷Search¡£


--------------------------------------------------------------------------------
Ïà¹ØÎÄÕÂ

ÈçºÎÄÜͨ¹ý´°Ìå·ÃÎÊ±í£¬µ«²»ÄÜÖ±½Ó¶ÁÈ¡±í£¿ 2004-8-27 21:58:17
Êý¾Ý¿âÉè¼ÆÖеÄÃô½Ý·½·¨ 2004-2-9 11:19:16
µ÷ÓÃoutlookÉú³É²¢·¢ËÍÓʼþµÄ´úÂë 2004-1-30 10:32:07
SQL SERVER»ù±¾¸ÅÄîѧϰӡÏó 2004-1-1 21:23:13
Ò»×éSQL ServerÉí·ÝÑéÖ¤¹ÜÀí×Ó³ÌÐò 2003-12-31 16:29:54
Access Êý¾Ý¿âºÍ Access ÏîÄ¿Ö®¼äµÄÊý¾ÝÀàÐ͵ıȽϻòÓ³Éä 2003-12-26 14:20:19
´óÐÍÊý¾Ý¿âÉè¼ÆÔ­Ôò 2003-12-15 12:49:18
ERwin--¼ò»¯µÄÊý¾Ý¿âÉè¼Æ¹¤¾ß 2003-12-15 12:41:40
ERwinÈí¼þ¼ò½é 2003-12-15 12:39:55
¾­µä×Ó²éѯӦÓà 2003-11-17 8:54:51
Á˽â Microsoft Access °²È«ÐÔ 2003-11-13 11:21:08
²»µ±±àдSQLÓï¾äµ¼ÖÂϵͳ²»°²È« 2003-11-13 10:55:26
±ÜÃâAccessºÍSQL ServerµÄ¿ÕÖµ³åÍ» 2003-10-17 20:03:19
±í´ïʽÉú³ÉÆ÷Öеļ¸ÖÖ³£Ó÷ûºÅ 2003-10-17 19:55:56
´´½¨ÍêÃÀ±¨±í 2003-10-17 19:37:17
£Ó£Ñ£Ì Óï·¨²Î¿¼ÊÖ²á 2003-10-17 19:12:40
SQL SERVER ÓëACCESS¡¢EXCELµÄÊý¾Ýת»» 2003-10-17 19:12:00
´æ´¢¹ý³ÌÈëÃÅ 2003-10-17 19:06:48
MS Jet SQL for Access 2000Öм¶Æª(IV) 2003-10-17 18:52:20
MS Jet SQL for Access 2000Öм¶Æª (II) 2003-10-17 18:51:01
MS Jet SQL for Access 2000Öм¶Æª (I) 2003-10-17 18:47:38
ʹÓÃADOÁ¬½Óµ½·À»ðǽºóµÄSQL Server 2003-10-17 18:43:57
ADOÁ¬½ÓÊý¾Ý¿â×Ö·û´®´óÈ« 2003-10-17 18:40:47
ADOÈý´ó¶ÔÏóµÄÊôÐÔ¡¢·½·¨¡¢Ê¼þ¼°³£Êý£¨¶þ£© 2003-10-14 8:45:33
ADOÈý´ó¶ÔÏóµÄÊôÐÔ¡¢·½·¨¡¢Ê¼þ¼°³£Êý£¨Èý£© 2003-10-14 8:44:20
ADOÈý´ó¶ÔÏóµÄÊôÐÔ¡¢·½·¨¡¢Ê¼þ¼°³£Êý£¨Ò»£© 2003-10-14 8:43:26
ACCESSÊý¾Ý·ÃÎÊÒ³ÅäÖÃʵÀý 2003-10-14 8:36:00
ÌáÉýÇ°ºǫ́ģʽ³ÌÐòµÄËÙ¶È 2003-10-10 10:17:08
AccessÆô¶¯ÃüÁîÐÐÑ¡Ïî´óÈ« 2003-10-10 10:02:00
Ò»¸ö¼òµ¥µÄAdoÓ÷¨Ê¾Àý 2003-10-6 16:24:38
Access 2002 ÖеÄÃû³Æ×Ô¶¯¸üÕý˵Ã÷ 2003-10-6 15:16:24
Êý¾Ý¿âÓ¦ÓóÌÐòÐè×¢ÒâµÄÎÊÌâ 2003-10-6 11:11:06


ϵͳÓÅ»¯
¿Ø¼þʹÓÃ
Êý¾Ý¿âÉè¼Æ
Êý¾Ý¿âÁ¬½Ó
ϵͳ°²È«
OLE×Ô¶¯»¯
³£¼ûÎÊÌâ
ʵÓôúÂë
ÊôÐÔÏê½â
ÍøÂçÏà¹Ø
ʵÓÃAPI
¾­Ñé·ÖÏí
¾«Ñ¡½Ì³Ì
×Ö·û´¦Àí
ADPÏà¹Ø



ÎÄÕÂËÑË÷



ÖÆ×÷ά»¤£ºÀîÑ°»¶     Mail:[email protected]

¹ØÓÚ±¾Õ¾ -- ÍøÕ¾·þÎñ -- °æȨÌõ¿î -- ÁªÏµ·½·¨ -- ÍøÕ¾°ïÖú
Access°®ºÃÕß°æȨËùÓÐ Copyright 2003-2005 All Rights Reserved δ¾­Ðí¿É²»µÃµÁÁ´