MS Jet SQL for Access 2000Öм¶Æª (I)
¼ò½é ¸ÃϵÁеÄÎÄÕ½âÊÍÁËʲôÊÇMicrosoft® Jet SQL£¬²¢ËµÃ÷ÁËËüÈçºÎÔÚAccess 2000µÄÓ¦ÓóÌÐòÖÐʹÓᣱ¾ÎÄÊÇ»ù´¡¡¢Öм¶ºÍ¸ß¼¶ÈýƪÖеĵڶþƪ¡£ÕâЩÎÄÕÂÑÐò½¥½øµÄ˵Ã÷ÁËʹÓÃJet SQLµÄÓï·¨ºÍһЩ·½·¨£¬²¢Ê¾·¶Á˶ÔÓÚAccess 2000À´Ëµ½ÏеÄJet SQLµÄÌØÕ÷¡£×îºó£¬±¾ÎĵÄËùÓÐSQL²Î¿¼¶¼ÊÇÕë¶ÔMicrosoft Jet 4.0 Êý¾ÝÒýÇæËùÓõġ£Öм¶SQL˵Ã÷ ͨ¹ýÁ˽âÖм¶½á¹¹»¯²éѯÓïÑÔµÄһЩ¸ÅÄÓû§¿ÉÒÔÔöÇ¿¿ØÖÆÊý¾Ý¿âµÄ½á¹¹ºÍ¶ÔÏóµÄÄÜÁ¦£¬²¢ÇÒ¿ÉÒÔͨ¹ýÐí¶àÓÐȤµÄºÍÇ¿ÓÐÁ¦µÄ;¾¶²Ù×ÝÕâЩ»ú¹¹Öаüº¬µÄÊý¾Ý¡£½áºÏʹÓÃÖîÈçDAOºÍADOÖ®ÀàµÄÊý¾Ý·ÃÎÊ·½·¨£¬Öм¶SQL ¿ÉÒԺܴó³Ì¶ÈµÄÌá¸ßÓû§Ó¦ÓóÌÐòµÄÁé»îÐÔ¼°Æä±íÏÖ¡£ »ù´¡¡¢Öм¶ºÍ¸ß¼¶SQLµÄ²»Í¬µã ÔÚ»ù´¡¡¢Öм¶ºÍ¸ß¼¶SQLÖ®¼ä»®·ÖÒ»ÌõÃ÷ÏԵĽçÏÞ²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇ飬ÔںܶàÇé¿öÏ£¬¾ö¶¨ÆäËùÊô¶¼Ö»ÊǼòµ¥µÄ¾ö¶Ï¡£µ«ÊǶÔÓÚ¸ÃϵÁÐÔÚAccess 2000ÖÐʹÓÃSQLµÄÎÄÕÂÀ´Ëµ£¬»¹¿¼ÂÇÁËÈçϵÄһЩ·½Ã棺 Ê×ÏÈÒ»µãÔÚÓÚSQLÓï¾ä±¾ÉíµÄ¸´ÔÓ¼¶±ð¡£ÔÚÇ°ÃæµÄÎÄÕÂÖУ¬ÎÒÃÇŬÁ¦Ê¹ÓÃÄÇЩ³£ÓõÄÓï¾ä£¬¶øÇÒÊÇ×î¼òµ¥µÄÐÎʽ¡£±¾ÎÄÔòÔÚÇ°Ãæ»ù´¡ÆªµÄ»ù´¡ÉϽéÉÜÁ˸ü¸´ÔÓµÄÓï¾ä¡£ Æä´ÎÊÇÔÚAccess 2000ÖÐÒѾ°üº¬ÁËһЩеÄSQLÓï¾ä¡¢×Ó¾äºÍ¹Ø¼ü´Ê¡£¾¡¹ÜÔÚ±¾ÎÄÖÐÈÔ½«Ê¹ÓÃAccessÉÏÒ»°æ±¾ÖÐËù°üº¬µÄSQLÓï¾ä£¬µ«ÊÇÒ»¶¨»á³öÏÖһЩÔÚAccessÖеÚÒ»´Î³öÏÖµÄSQLÓï¾ä£¬Ôڸ߼¶SQLÒ»ÎÄÖÐÒ²ÊÇÈç´Ë¡£ ×îºó£¬ÄÇЩ¹ØÓÚ°²È«ÐԺͶàÓû§½â¾ö·½°¸µÄSQLÓï¾ä½«Ôڸ߼¶ÆªÖнéÉÜ£¬ÒòΪÕâЩÓï¾ä³£³£ÊÇÓÃÓÚ¸ü¸´ÔÓµÄÓ¦ÓóÌÐòÖÐµÄ Í¨¹ýʹÓÃÖм¶SQL£¬Óû§¿ÉÒÔΪÄãµÄAccessÓ¦ÓóÌÐòÔö¼Ó¸üÇ¿µÄÁé»îÐÔºÍÄÜÁ¦¡£¾¡¹Ü¼òµ¥µÄºÍÖ±½ÓµÄSQLÓï¾äÄܹ»Íê³ÉºÜ¶àµÄÊÂÇ飬µ«ÊÇʹÓøü¸´ÔÓµÄÓï¾ä½«À©Õ¹ÔÚÊý¾Ý¿âÖзÃÎʺʹ¦ÀíÐÅÏ¢µÄ·½·¨·¶Î§¡£Ê¹ÓÃÖм¶SQLÒ²½«Ê¹µÃÓû§¿ÉÒÔ¸üºÃµÄ¿ØÖÆÄãµÄÊý¾Ý¿âʹÓúÍά»¤¹¤×÷ ÔöÇ¿SQL ÔÚAccess 2000ÖУ¬ÎªÁËÖ§³ÖAccessµÄÐÂÌØÐÔ£¬ÎªÁ˺ÍANSI-92µÄ±ê×¼¸ü¼ÓÒ»Ö£¬²¢ÇÒÔÊÐíÔÚAccess ºÍ Microsoft® SQL Server™¼äµÄ¸üºÃµÄ¼æÈÝÐÔ£¬°üº¬ÔÚMicrosoft Jet 4.0Êý¾ÝÒýÇæÖеÄSQL×÷ÁËÐí¶àÔöÇ¿¡£JetÊý¾ÝÒýÇæÏÖÔÚÓÐÁ½ÖÖ¸ñʽµÄSQLÓï·¨£ºÒ»ÖÖÊÇÖ§³ÖÒÔǰʹÓõÄSQLÓï·¨£¬ÁíÒ»ÖÖÊÇÖ§³ÖеÄSQLÓï·¨¹æ·¶¡£ÐèÒª¸ñÍâ×¢ÒâµÄÊÇ£¬Ö»ÓÐÔÚÓû§Ê¹ÓÃActiveX® Data Objects (ADO)ºÍJet OLE DB providerʱеÄÓï·¨²ÅÊÇ¿ÉÓõģ¬¶øµ±Ç°Í¨¹ýAccess SQL View½Ó¿Ú»òÕßDAOÊÇÎÞ·¨Ê¹ÓÃеÄÓï·¨µÄ¡£±¾ÎÄÖ¸³öÖ»ÓÐͨ¹ýJet OLE DB provider ºÍ ADO²ÅÄܹ»Ê¹ÓÃij¸öÌض¨µÄSQLÃüÁî¡£
ÔÚAccessµÄÉÏÒ»°æ±¾ÖУ¬Êý¾Ý·ÃÎʶÔÏó(DAO)ÊÇÖ÷ÒªµÄÊý¾Ý·ÃÎÊ·½·¨¡£¶øÏÖÔÚ·¢ÉúÁ˸ı䣬¾¡¹ÜDAO ÈԾɱ»Ö§³Ö£¬µ«ÐµÄÊý¾Ý·ÃÎÊ·½·¨ÊÇʹÓÃADO¡£ADOÊÇ΢ÈíµÄͨÓÃÊý¾Ý·ÃÎÊÕ½ÂÔ£¨Microsofts Universal Data Access strategy£©µÄÒ»²¿·Ö£¬Æä×î»ù±¾µÄ¼ÙÉèÊÇÎÞÂÛÊý¾Ý´æÔÚÄÇÀﶼÊÇ¿ÉÒÔ·ÃÎʵģ¬²»¹ÜÊÇÊý¾Ý¿â¡¢Ä¿Â¼½á¹¹»¹ÊÇijÖØÓû§×Ô¶¨ÒåµÄÊý¾Ý¿â¡£ ÔÚÌÖÂÛMicrosoft Jet SQL ʱ£¬ADOÊǷdz£ÖØÒªµÄ£¬ÕýÈçÔÚÇ°ÃæÌáµ½µÄ£¬Ò»Ð©ÐµÄSQLÓï¾äÖ»ÓÐÔÚʹÓÃADO ºÍJet OLE DB providerʱ²ÅÊÇ¿ÉÓõġ£ÔÚ±¾ÎĺÍÓë±¾ÎÄÏàÅäÌ×µÄʾ·¶Êý¾Ý¿âÖУ¬ËùÓеĴúÂ붼ÊÇʹÓÃADOЩµÄ¡£ÄÇЩûÓÐÌØÒâÖ¸Ã÷ΪֻÓÐͨ¹ýADO²Å¿ÉÓõÄSQLÓï¾ä¶¼¿ÉÒÔͨ¹ýAccess SQL View Óû§½Ó¿Ú»ò DAOÀ´Ö´ÐС£Ï꾡µÄ¹ØÓÚADOµÄÌÖÂÛ³¬³öÁ˱¾Îĵķ¶Î§£¬Óû§¿ÉÒÔÔÚÏÂÃæµÄÍøÕ¾ÖÐÕÒµ½×î½üµÄÐÅÏ¢
SQL´úÂë¹æ·¶ ±¾ÎÄʹÓÃÒ»ÖÂÐÔµÄSQL´úÂë¹æ·¶¡£ÓëËùÓеĴúÂë¹æ·¶Ïàͬ£¬Ä¿µÄÊÇʹÓÃÒ׶ÁºÍÒ×ÓÚÀí½âµÄ·½Ê½À´ÏÔʾ´úÂë¡£Õâ¾ÍҪͨ¹ý¿Õ¸ñ¡¢»»Ðкʹóд¹Ø¼ü×ֵĽáºÏʹÓÃÀ´ÊµÏÖ¡£Í¨³£À´Ëµ£¬ÒªÊ¹Óôóд×ÖĸÀ´´òÓ¡SQLµÄ¹Ø¼ü×Ö£¬Èç¹ûSQLÓï¾ä±ØÐë»»ÐУ¬¾¡Á¿Ê¹SQLÓï¾äµÄÖ÷Òª²¿·ÖÒ»Æð»»ÐС£¿´¹ýһЩÀý×ÓÖ®ºó£¬ÏàÐŶÁÕß»á¶Ô´ËÓнϺõĸоõ¡£ ²»ºÏ¸ñʽµÄSQL´úÂë CREATE TABLE tblCustomers (CustomerID INTEGER NOT NULL, [Last Name] TEXT(50) NOT NULL, [First Name] TEXT(50) NOT NULL, Phone TEXT(10), Email TEXT(50)) Á¼ºÃ¸ñʽµÄSQL´úÂë CREATE TABLE tblCustomers ( ...CustomerID INTEGER NOT NULL, ...[Last Name] TEXT(5) NOT NULL, ...[First Name] TEXT(50) NOT NULL, ...Phone TEXT(10), ...Email TEXT(50))
--------------------------------------------------------------------------------
Ïà¹ØÎÄÕÂ
Êý¾Ý¿âÉè¼ÆÖеÄÃô½Ý·½·¨ 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Öм¶Æª (III) 2003-10-17 18:51:47
MS Jet SQL for Access 2000Öм¶Æª (II) 2003-10-17 18:51:01
ʹÓÃ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
|