python中的数据库? [英] database in python ?

查看:57
本文介绍了python中的数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我需要构建需要搜索数据的表需要更多

电源然后字典或python列表,任何人都可以帮我什么样的数据库适合的b $ b数据库python轻松,易学。 mySQL是一个很好的开始吗?


真诚的你,

Pujo

Hello I need to build table which need searching data which needs more
power then dictionary or list in python, can anyone help me what kind
of database suitable for python light and easy to learn. Is mySQL a
nice start with python ?

Sincerely Yours,
Pujo

推荐答案

aj****@gmail.com 写道:
aj****@gmail.com wrote:
我需要构建需要搜索数据的表,这需要更多的功能然后字典或列表在python中,任何人都可以帮我什么类型的数据库适合python light而且易于学习。使用python是一个很好的开始吗?
I need to build table which need searching data which needs more
power then dictionary or list in python, can anyone help me what
kind of database suitable for python light and easy to learn. Is
mySQL a nice start with python ?




您可以尝试SQLite for Python:< http://pysqlite.org/>。


欢呼,

-

Klaus Alexander Seistrup

磁墨水,哥本哈根,丹麦
http://magnetic-ink.dk/


MySQL是一个很好的选项,有很好的文档记录。对于OpenSource数据库,它也是一个

的事实标准。


您需要安装Python模块MySQLdb。 - >
http://sourceforge.net/projects/mysql- python


在网上也应该有大量的例子来使用MySQLdb和

Python。


如果你变得更高级,你可以查看SQLObject模块,

允许你以更加Pythonic的客观方式使用数据库。


Julian
http://julianyap.blogspot.com

MySQL is an excellent option is very well documented. It is also a
defacto standard for OpenSource databases.

You will need to install the Python module MySQLdb. -->
http://sourceforge.net/projects/mysql-python

There should be plenty of examples online too for using MySQLdb with
Python.

If you get more advanced, you can look into the SQLObject module which
allows you to use databases in a more Pythonic objective way.

Julian
http://julianyap.blogspot.com


MySQL是一个很好的选项,有很好的文档记录。它也是OpenSource数据库的一个标准。
MySQL is an excellent option is very well documented. It is also a
defacto standard for OpenSource databases.




MySQL糟透了,但非常非常基本的东西,因为它不支持

交易,外键,程序,触发器,并发等。

Postgresql好多了,免费,而且Postgres的psycopg适配器是非常非常*快的
* (比MySQL快很多)它有一个

dictfetchall()方法,这在甜甜圈中是值得的!



MySQL sucks for anything but very very basic stuff as it supports no
transactions, foreign keys, procedures, triggers, concurrency, etc.
Postgresql is a lot better, free, and the psycopg adapter for Postgres is
*very very* fast (a lot faster than the MySQL one) and it has a
dictfetchall() method which is worth its weight in donuts !


这篇关于python中的数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆