2007年11月29日 星期四 15:38
×î½üÔÚѧϰdjango/python. ÓÃsqlite3Ϊºǫ́Êý¾Ý¿â¡£µ«²»Ö§³ÖÐ޸ıí½á¹¹µÄ¹¦ÄÜ¡£ÓÐËÖªµÀÓÐʲôǶÈëʽµÄÊý¾Ý¿âÖ§³ÖÕâ¸ö¹¦ÄÜÂ𣿠ps. ±¾È˵ÄWindows²»ÄÜ×°postgres, mysqlÖ®ÀàµÄ£¬ÒòΪʹÓÃÕâÖÖ"´ó"Êý¾Ý¿âÐèÒªadminȨÏÞ¡£ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071129/e8ecfee8/attachment.html
2007年11月29日 星期四 15:46
WindowsµÄ»°¿ÉÒÔ³¢ÊÔÏÂÕâ¸ösqliteµÄ¿ÉÊÓ»¯¹ÜÀí¹¤¾ß SQLite Expert Personal http://www.sqliteexpert.com/download.html _____ ·¢¼þÈË: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] ´ú±í Ben Luo ·¢ËÍʱ¼ä: 2007Äê11ÔÂ29ÈÕ 15:38 ÊÕ¼þÈË: python-chinese在lists.python.cn Ö÷Ìâ: [python-chinese] Database for Django or Python ×î½üÔÚѧϰdjango/python. ÓÃsqlite3Ϊºǫ́Êý¾Ý¿â¡£µ«²»Ö§³ÖÐ޸ıí½á¹¹µÄ¹¦ÄÜ¡£ÓÐ ËÖªµÀÓÐʲôǶÈëʽµÄÊý¾Ý¿âÖ§³ÖÕâ¸ö¹¦ÄÜÂ𣿠ps. ±¾È˵ÄWindows²»ÄÜ×°postgres, mysqlÖ®ÀàµÄ£¬ÒòΪʹÓÃÕâÖÖ"´ó"Êý¾Ý¿âÐèÒª adminȨÏÞ¡£ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071129/8f7f31c1/attachment.htm
2007年11月29日 星期四 16:09
On Nov 29, 2007 3:46 PM, beck917 <beck917在gmail.com> wrote: > WindowsµÄ»°¿ÉÒÔ³¢ÊÔÏÂÕâ¸ösqliteµÄ¿ÉÊÓ»¯¹ÜÀí¹¤¾ß > > SQLite Expert Personal > > Ö÷ÒªÊÇÏë±£Áôij¸ötableÀïµÄÊý¾ÝµÄǰÌáϸü¸Ätable½á¹¹¡£sqlite3 ²»¿ÉÒÔ¡£ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071129/4b2f9b74/attachment.html
2007年11月29日 星期四 16:46
mysql 有免安装版 在2007-11-29,"Ben Luo" <benluo在gmail.com> 写道: 最近在学习django/python. 用sqlite3为后台数据库。但不支持修改表结构的功能。有谁知道有什么嵌入式的数据库支持这个功能吗? ps. 本人的Windows不能装postgres, mysql之类的,因为使用这种"大"数据库需要admin权限。 -------------- 涓嬩竴閮ㄥ垎 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20071129/1bbcec73/attachment.html
2007年11月29日 星期四 21:20
ÔÚdjango+mysqlÖУ¬ÄѵÀÐ޸ıí½á¹¹µÄʱºòÊý¾Ý²»»á¶ªÊ§£¨³ýÁË×Ô¼º±¸·Ý£©£¿ ÔÚ07-11-29£¬icefishc <icefishc在163.com> дµÀ£º > > > mysql ÓÐÃâ°²×°°æ > > > > ÔÚ2007-11-29£¬"Ben Luo" <benluo在gmail.com> дµÀ£º > > ×î½üÔÚѧϰdjango/python. ÓÃsqlite3Ϊºǫ́Êý¾Ý¿â¡£µ«²»Ö§³ÖÐ޸ıí½á¹¹µÄ¹¦ÄÜ¡£ÓÐËÖªµÀÓÐʲôǶÈëʽµÄÊý¾Ý¿âÖ§³ÖÕâ¸ö¹¦ÄÜÂ𣿠> ps. ±¾È˵ÄWindows²»ÄÜ×°postgres, mysqlÖ®ÀàµÄ£¬ÒòΪʹÓÃÕâÖÖ"´ó"Êý¾Ý¿âÐèÒªadminȨÏÞ¡£ > > > _______________________________________________ > 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/20071129/c7ac5fd5/attachment.htm
2007年11月29日 星期四 21:33
Ôö¼ÓÁÐʲôµÄ²»»á°¡¡£ On 11/29/07, eho eho <jiulang.eho在gmail.com> wrote: > > ÔÚdjango+mysqlÖУ¬ÄѵÀÐ޸ıí½á¹¹µÄʱºòÊý¾Ý²»»á¶ªÊ§£¨³ýÁË×Ô¼º±¸·Ý£©£¿ > > ÔÚ07-11-29£¬icefishc <icefishc在163.com> дµÀ£º > > > > > > mysql ÓÐÃâ°²×°°æ > > > > > > > > ÔÚ2007-11-29£¬"Ben Luo" <benluo在gmail.com> дµÀ£º > > > > ×î½üÔÚѧϰdjango/python. ÓÃsqlite3Ϊºǫ́Êý¾Ý¿â¡£µ«²»Ö§³ÖÐ޸ıí½á¹¹µÄ¹¦ÄÜ¡£ÓÐËÖªµÀÓÐʲôǶÈëʽµÄÊý¾Ý¿âÖ§³ÖÕâ¸ö¹¦ÄÜÂ𣿠> > ps. ±¾È˵ÄWindows²»ÄÜ×°postgres, mysqlÖ®ÀàµÄ£¬ÒòΪʹÓÃÕâÖÖ"´ó"Êý¾Ý¿âÐèÒªadminȨÏÞ¡£ > > > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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/20071129/a5bc2bf2/attachment.html
2007年11月29日 星期四 22:56
我只能说django修改表结构实在是太麻烦了。 如果只是增加删除列什么的都还好,如果加了关联,还得手动建关联表,简索引。 如果能象hibernate一样自动修改表结构那就方便多了。 在 07-11-29,@@<askfor在gmail.com> 写道: > 增加列什么的不会啊。 >
2007年11月30日 星期五 09:03
On Nov 29, 2007 10:56 PM, vicalloy <zbirder在gmail.com> wrote: > 我只能说django修改表结构实在是太麻烦了。 > 如果只是增加删除列什么的都还好,如果加了关联,还得手动建关联表,简索引。 > 如果能象hibernate一样自动修改表结构那就方便多了。 > django不是有reset命令吗?除非是有数据不想动才会麻烦一些。但是如果可以考虑导出数据,然后再装回去的话,应该可以使用dumpdata , loaddata等功能来实现。 数据库的修改本来就是复杂的,并不因为是django就更复杂。 -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide < >: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou
2007年11月30日 星期五 09:39
就是因为有数据,而且有很多数据:(。 hibernate这点做得不错,可以自动对表结构进行修改(不会删字段,但会自动添加)。 自动修改+手动维护,这样会比较方便些。 在 07-11-30,limodou<limodou在gmail.com> 写道: > On Nov 29, 2007 10:56 PM, vicalloy <zbirder在gmail.com> wrote: > > 我只能说django修改表结构实在是太麻烦了。 > > 如果只是增加删除列什么的都还好,如果加了关联,还得手动建关联表,简索引。 > > 如果能象hibernate一样自动修改表结构那就方便多了。 > > > django不是有reset命令吗?除非是有数据不想动才会麻烦一些。但是如果可以考虑导出数据,然后再装回去的话,应该可以使用dumpdata > , loaddata等功能来实现。 > > 数据库的修改本来就是复杂的,并不因为是django就更复杂。 > > -- > I like python! > UliPad <>: http://code.google.com/p/ulipad/ > meide <>: http://code.google.com/p/meide/ > My Blog: http://www.donews.net/limodou > _______________________________________________ > 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 -- Blog http://vicalloy.spaces.live.com/ My googlepage http://vicalloy.googlepages.com/ OldPhoto http://www.lzpian.com/
2007年11月30日 星期五 09:49
On Nov 30, 2007 9:39 AM, vicalloy <zbirder在gmail.com> wrote: > 就是因为有数据,而且有很多数据:(。 > hibernate这点做得不错,可以自动对表结构进行修改(不会删字段,但会自动添加)。 > 自动修改+手动维护,这样会比较方便些。 > 添加字段只能完成一部分工作,这样你还是要非常小心具体的变化。django现在好象有一个叫migirate的东西,不过没有关注过,可以找一找看一看。 在我经历过的数据库的变化中,我们往往都是通过程序来完成,这样可以充分进行测试。其中包括将数据先转放到临时表,加工,再转回去。有时要改表名,有时要扩空间。反正是内容非常多,也很复杂,有时光靠简单自动化的功能是无法实现的。 -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide < >: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou
2007年11月30日 星期五 09:55
http://code.google.com/p/django-evolution/ Schema evolution, or database migration, is basically the process of altering the structure of your database tables to accommodate new features. This process is often done manually, by writing SQL that is specific to the database server being used, as well as the project being modified. Since one of Django's goals is to remove the need for hand-coding SQL, this became a bit of a sticking point. Several options have been proposed, but there are pros and cons to each. 没用过。 有兴趣看一看这个: http://gulopine.gamemusic.org/2007/11/django-projects_29.html -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide < >: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou
2007年11月30日 星期五 11:24
ÔÞͬ£¬ÐÞ¸ÄÊý¾Ý¿â×îºÃСÐÄ£¬²¢ÇÒÓóÌÐò·´¸´²âÊÔ²ÅÐС£ 2007-11-30 À¥ÂØ ·¢¼þÈË£º limodou ·¢ËÍʱ¼ä£º 2007-11-30 09:49:49 ÊÕ¼þÈË£º python-chinese在lists.python.cn ³ËÍ£º Ö÷Ì⣺ Re: [python-chinese] Database for Django or Python On Nov 30, 2007 9:39 AM, vicalloy <zbirder在gmail.com > wrote: > ¾ÍÊÇÒòΪÓÐÊý¾Ý£¬¶øÇÒÓкܶàÊý¾Ý£º£¨¡£ > hibernateÕâµã×öµÃ²»´í£¬¿ÉÒÔ×Ô¶¯¶Ô±í½á¹¹½øÐÐÐ޸썲»»áɾ×ֶΣ¬µ«»á×Ô¶¯Ìí¼Ó£©¡£ > ×Ô¶¯ÐÞ¸Ä+ÊÖ¶¯Î¬»¤£¬ÕâÑù»á±È½Ï·½±ãЩ¡£ > Ìí¼Ó×Ö¶ÎÖ»ÄÜÍê³ÉÒ»²¿·Ö¹¤×÷£¬ÕâÑùÄ㻹ÊÇÒª·Ç³£Ð¡ÐľßÌåµÄ±ä»¯¡£djangoÏÖÔÚºÃÏóÓÐÒ»¸ö½ÐmigirateµÄ¶«Î÷£¬²»¹ýûÓйØ×¢¹ý£¬¿ÉÒÔÕÒÒ»ÕÒ¿´Ò»¿´¡£ ÔÚÎÒ¾Àú¹ýµÄÊý¾Ý¿âµÄ±ä»¯ÖУ¬ÎÒÃÇÍùÍù¶¼ÊÇͨ¹ý³ÌÐòÀ´Íê³É£¬ÕâÑù¿ÉÒÔ³ä·Ö½øÐвâÊÔ¡£ÆäÖаüÀ¨½«Êý¾ÝÏÈת·Åµ½ÁÙʱ±í£¬¼Ó¹¤£¬ÔÙת»ØÈ¥¡£ÓÐʱҪ¸Ä±íÃû£¬ÓÐʱҪÀ©¿Õ¼ä¡£·´ÕýÊÇÄÚÈݷdz£¶à£¬Ò²ºÜ¸´ÔÓ£¬ÓÐʱ¹â¿¿¼òµ¥×Ô¶¯»¯µÄ¹¦ÄÜÊÇÎÞ·¨ÊµÏֵġ£ -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide < >: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou _______________________________________________ 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/20071130/9d813651/attachment.html
2007年11月30日 星期五 11:45
¿ÉÒÔÓÃsqliteµÄ¿ÉÊÓ»¯¹¤¾ßÖ±½ÓÐ޸ıí½á¹¹°¡£¬ÎªÊ²Ã´Ëµsqlite²»ÄÜÐÞ¸Ä -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071130/983dc601/attachment.htm
Zeuux © 2025
京ICP备05028076号