2007年01月01日 星期一 08:35
ËãÊÇÒ»¸ö½¨Ò飬×÷ΪÓʼþÁÐ±í£¬Ã»ÓбØҪΪÁËллÁ½×־ͻطâÐÅ¡£Ï£Íû¹ÜÀíÔ±ÄÜ°ÑÕâ¸ö×÷Ϊһ¸ö¹æÔò¡£ ÔÚ06-12-31£¬swordsp <sparas2006在gmail.com> дµÀ£º > > лÀ²~ > > On 12/31/06, yi huang <yi.codeplayer在gmail.com > wrote: > > > > On 12/31/06, swordsp <sparas2006在gmail.com > wrote: > > > > ÎÒÀ´³¢ÊÔһϠ> > > > This API has been defined to encourage similarity between the Python > > modules that are use > > to access databases. By doing this, we hope to achieve a consistency > > leading to more easily > > understood modules, code that is generally more portable across > > databases, and a broader > > reach of database connectivity from Python. > > > > ¶¨ÒåÕâ·Ý API µÄÄ¿µÄÊÇÒª¹ÄÀøÄÇЩÓÃÀ´·ÃÎÊÊý¾Ý¿âµÄ python > > Ä£¿éÖ®¼äµÄÏàËÆÐÔ¡£Í¨¹ýÕâÑù×ö£¬ÎÒÃÇÏ£Íû»ñµÃÒ»ÖÖÒ»ÖÂÐÔ£¬²¢Óɴ˲úÉú¸üÒ׶®µÄÄ£¿é£¬ÔÚ²»Í¬Êý¾Ý¿âÖ®¼ä¸üÈÝÒ×ÒÆÖ²µÄ´úÂ룬ºÍ python > > ÓëÊý¾Ý¿âÖ®¼ä¸ü¹ãÀ«µÄÁªÍ¨¡£ > > -- ÎÒÖ±ÒëµÄ£¬¸Ð¾õ²»ÊÇÌرðÈÆ¿Ú£¬×îºóÒ»¾ä²»»á·¡£ > > > > Exception raised for errors that are related to the database's operation > > and not necessarily > > under the control of the programmer... > > > > ÓÉÓÚÊý¾Ý¿â²Ù×÷´íÎó¶ø²úÉúµÄÒì³££¬²»±ØÓɳÌÐòÔ±À´¿ØÖÆ ... > > > > àÅ£¬ºó°ë¾äÀí½â³É¶Ô"Òì³£"µÄÐÞÊÎ¾Í Í¨Ë³¶àÁË£¬ÎÒ×ÜÏë³É¶ÔÊÇ"´íÎó"µÄÐÞÊÎÁË¡£ > > > > This is most effective for algorithms where the same operation is used, > > but different > > parameters are bound to it (many times). > > > > Õâ¶ÔÓÚÐèҪʹÓò»Í¬²ÎÊý¶à´Îµ÷ÓÃͬһ²Ù×÷µÄËã·¨ÌرðÓÐÓᣠ> > > > The method should try to fetch as many rows as indicated by the size > > parameter. If this is > > not possible due to the specified number of rows not being available, > > fewer rows may be > > returned. > > > > ¸Ã·½·¨Ó¦¸Ã¾¡¿ÉÄÜ·µ»Ø²ÎÊý size Ö¸¶¨µÄÄÇô¶àÐС£Èç¹ûûÓÐÕâô¶à£¬ÉÙһЩҲ¿ÉÒÔ¡£ > > > > Õâ¾äµÄÖ÷ÒªÎÊÌâÊÇ£¬ÎÒ¾õµÃ"as many > as"Òþº¬×Å"¼´Ê¹Ê£ÓàµÄÐÐÊýÁ¿²»×㣬ҲҪ·µ»Ø¾¡¿ÉÄܶàµÄÐУ¨Ò²¾ÍÊÇÈ«²¿·µ»Ø£©"ÕâÑùÒ»¸öÒâ˼£¬ÎÒÏë°ÑÕâ²ãÒâ˼ֱ½ÓÒ»µãµÄ±íʾ³öÀ´¡£ > > A Cursor Object's description attribute returns information about each of > > > the result columns of a query. The type_code must compare equal to one of > > > Type Objects defined below. Type Objects may be equal to more than one type > > > code ( e.g. DATETIME could be equal to the type codes for date, time > > > and timestamp columns; see the > > > Implementation Hints below for details). > > > Cursor¶ÔÏóµÄdescriptionÊôÐÔ·µ»ØÒ»¸ö²éѯ²Ù×÷µÄ ½á¹ûÖÐÿһÁеÄÐÅÏ¢¡£ÆäÀàÐÍ´úÂ루type_codeÖµ£©±ØÐëµÈ¼ÛÓÚ£¨compare > > > equal to£©ÒÔ϶¨ÒåµÄijһType¶ÔÏó¡£Í¬Ò»Type¶ÔÏó¿ÉÒԵȼÛÓÚ¶à ÖÖÀàÐÍ´úÂ루ÀýÈ磬DATETIME¿ÉÒԵȼÛÓÚdate£¬time»òÕß > > > timestampÁеÄÀàÐÍ´úÂ룻Ïêϸ˵Ã÷²Î¼ûÏÂÎÄÖÐ"Implementation Hints"Ò»½Ú£©¡£ > > > > > > £¨"µÈ¼ÛÓÚ"¸Ð¾õ»¹²»Ì«µ½Î»£¬ÓиüºÃµÄ··¨Â𣿣© > > > > > > > compare equal to ¾ÍÊǵÈÓÚµÄÒâ˼°É¡£ > > > > ÕâÀï¶à¼ÓÁËÒ»¸ö"compare"£¬×ÜÈÃÎÒDZÒâʶÀïÓÐÕâÑùÒ»²ãÏë·¨£º > ÔÚ×ö"compare"²Ù×÷ʱ£¨"="ÔËËã·û£©±íÏÖΪÏàµÈ¡ª¡ªµ«Ò²¿ÉÄÜÔÚÆäËü³¡ºÏ±íÏÖ³ö²îÒì¡£ > µ±È»ºÜ¿ÉÄÜÖ»ÊÇÎÒµ¥´¿µÄÏë¶àÁË¡£ > > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070101/3a899c84/attachment.html
2007年01月01日 星期一 16:21
On 1/1/07, lookgirl ITech <sagasw at gmail.com> wrote: > > 算是一个建议,作为邮件列表,没有必要为了谢谢两字就回封信。希望管理员能把这个作为一个规则。 > > 唔...我也有一个建议...读邮件请读完整-_-b 不过还是感谢您对于邮件列表良好讨论氛围的维护,其实我自己也不喜欢某些bbs习气的"水帖"就是了。 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070101/79c2aa5b/attachment.html
Zeuux © 2025
京ICP备05028076号