Access������--
ËùÊô·ÖÀࣺ ϵͳÓÅ»¯ ×÷Õߣº cg1 ¸üÐÂÈÕÆÚ£º2004-8-27 21:58:17 ÔĶÁ´ÎÊý£º452

ÈçºÎÄÜͨ¹ý´°Ìå·ÃÎÊ±í£¬µ«²»ÄÜÖ±½Ó¶ÁÈ¡±í£¿


ÎÊÌ⣺

ÈçºÎÄÜͨ¹ý´°Ìå·ÃÎÊ±í£¬µ«²»ÄÜÖ±½Ó¶ÁÈ¡±í£¿
ÎÒÐèÒªÈÃÓû§²»ÄÜÖ±½Ó´ò¿ªÎÒµÄ±í£¬µ«ÊÇ¿ÉÒÔͨ¹ýÎÒ±àдµÄ´°ÌåÀ´´ò¿ªÕâЩ±í£¬ÕâÑùÎҾͿÉÒÔ±à³Ì¿ØÖÆһЩ×ֶεÄÊý¾ÝÁË¡£


»Ø´ð£º

±¾ÎĵÄʾÀýÎļþ£¬¿ÉÒÔ´Ó¡°´°Ìå1¡±·ÃÎÊ¡°±í1¡±£¬µ«²»ÄÜÖ±½Ó´ò¿ª¡°±í1¡±£¬Ò²²»Äܵ¼³öËü¡£
http://www.accfans.net/bbs/images/upload/2004/08/27/100259.rar

Ô­Àí£º

¿ÉÒÔͨ¹ý ACCESS ×ÔÉíµÄ°²È«Ïòµ¼½áºÏ JET SQL ÖÐ SELECT ²éѯµÄ WITH OWNERACCESS OPTION ÉùÃ÷À´Íê³É¡£
WITH OWNERACCESS OPTION ÔÚ¾ßÓа²È«¹¤×÷×éµÄ¶àÓû§»·¾³ÖУ¬Ê¹ÓøÃÉùÃ÷ºÍ²éѯ¸øÔËÐиòéѯµÄÓû§Óë²éѯËùÓÐÕßÏàͬµÄȨÏÞ¡£
A¡¢ÄãÖ»Òª½«Ä³¸ö±íµÄËùÓÐÕßÉ趨Ϊij¸ö×Ô¶¨ÒåÓû§£¬¶ø¸ÃÓû§ÊôÓÚ¹ÜÀíÔ±×飬¶Ô±íÓжÁÈ¡¡¢ÐÞ¸ÄȨÏÞ¡£
B¡¢É趨ÔÚĬÈÏÇé¿öÏÂÓû§×鶼ӵÓдò¿ª´°ÌåµÄȨÏÞ£¬µ«Ã»ÓжÁÈ¡±íµÄȨÏÞ
C¡¢ÓÃWITH OWNERACCESS OPTIONÀ´½¨Á¢´°ÌåµÄÊý¾ÝÔ´£¬¸³ÓèÆÕͨÓû§ÓµÓбíµÄËùÓÐÕß²ÅÓµÓеÄÐ޸ĶÁȡȨÏÞ¡£ÕâÑùʹÓÃÕß¾ÍÖ»ÄÜͨ¹ýÄãµÄ´°ÌåÀ´·ÃÎÊÊý¾Ý±íÁË¡£
D¡¢·¢²¼µÄʱºòÎÞÐè·¢²¼ÄãµÄ MDW Îļþ£¬ÒòΪ¿Í»§ÄÇÀïĬÈÏ»áÒÔÓû§×éµÄȨÏÞ´ò¿ªÄãµÄÊý¾Ý¿â£¬ÕâÑù¾Í´ïµ½ÄãµÄÄ¿µÄÁË¡£


ʵ¼Ê²Ù×÷£º

1¡¢½¨Á¢Ò»¸öÊý¾Ý¿â£¬ÀïÃæÓÐ1¸ö±í(±í1)£¬Ò»¸ö´°Ìå(´°Ìå1)£¬ÉèÖá°´°Ìå1¡±µÄÊý¾ÝԴΪ
SELECT * FROM ±í1 WITH OWNERACCESS OPTION

2¡¢ÇëÔٲο¼Ò»±é΢ÈíµÄÎÄÕÂÖÐÒÔÏÂÕ½Ú
¡¶Á˽â Microsoft Access °²È«ÐÔ¡·
ÎÄÕÂλÖãºhttp://www.accfans.net/showart.asp?art_id=138&cat;_id=10

3¡¢½«ÆäÖÐͼ 4£º¡°ÉèÖð²È«»úÖÆÏòµ¼¡±¶Ô»°¿òµÄµÚÎå¸öÆÁÄ»¡°ÊÇ£¬ÒªÊÚÓèÓû§×éһЩȨÏÞ¡±µãÉÏ

4¡¢¸³ÓèÓû§×é¡°´ò¿ª/ÔËÐС±Êý¾Ý¿âµÄȨÏÞ£»¸³ÓèÓû§×é¡°´ò¿ª/ÔËÐС±´°Ìå1µÄȨÏÞ£¬È»ºóµ¥»÷¡°ÏÂÒ»²½¡±£¬ÆäËûµÄÕÕÉÏÃæÄÇƪÎÄÕÂ×ö

5¡¢Óÿì½Ý·½Ê½¸½´ø¹¤×÷×éÆô¶¯ MDB Îļþ£¬È»ºóÉèÖÃÄãµÄйÜÀíÔ±(ÒÔʾÀýÀ´Ëµ¾ÍÊÇ frice )¶Ô ±í1 µÄ¡°¹ÜÀí¡±È¨ÏÞ

6¡¢Íê³Éºó²»ÒªÓÿì½Ý·½Ê½¸½´ø¹¤×÷×éÆô¶¯£¬Ö±½ÓÆô¶¯ MDB Îļþ¿´¿´Ð§¹ûÈçºÎ£¿


7¡¢ÔÙ»ØÍ·¿´Ò»Ï WITH OWNEERACCESS OPTION µÄ°ïÖú°É
WITH OWNERACCESS OPTION ÉùÃ÷
ÔÚ¾ßÓа²È«¹¤×÷×éµÄ¶àÓû§»·¾³ÖУ¬Ê¹ÓøÃÉùÃ÷ºÍ²éѯ¸øÔËÐиòéѯµÄÓû§Óë²éѯËùÓÐÕßÏàͬµÄȨÏÞ¡£

Óï·¨
sqlstatement
WITH OWNERACCESS OPTION;

˵Ã÷
WITH OWNERACCESS OPTION ÉùÃ÷ÊÇ¿ÉÑ¡µÄ¡£

ÏÂÁÐʾÀýʹÓû§Äܹ»²é¿´¹¤×ÊÐÅÏ¢£¨¼´Ê¹Óû§Ã»ÓÐȨÏ޲鿴¹¤×Ê±í£©£¬Ìṩ²éѯÖ÷ÈËÓµÓеÄȨÏÞ£º

SELECT LastName,

FirstName, Salary

FROM Employees

ORDER BY LastName

WITH OWNERACCESS OPTION;


Èç¹ûÓû§ÎÞ·¨´´½¨±í»òÌí¼Ó£¬¿ÉʹÓà WITH OWNERACCESS OPTIONÀ´ÔËÐÐ ÖƱí»ò×·¼Ó²éѯ¡£

Èç¹ûҪǿÖƹ¤×÷×鰲ȫÐÔÉèÖü°Óû§µÄȨÏÞ£¬²»Òª°üº¬ WITH OWNERACCESS OPTION ÉùÃ÷¡£

´ËÑ¡ÏîÒªÇóÄú±ØÐë·ÃÎÊÓë¸ÃÊý¾Ý¿âÏà¹ØµÄ System.mdw Îļþ¡£ËüÖ»ÔÚ°²È«µÄ¶àÓû§ÊµÏÖÖвÅÕæÕýÓÐÓá£



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

ûÓÐÏà¹ØÎÄÕÂ


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



ÎÄÕÂËÑË÷



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

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