我是python的新手。 对不起,如果这是一个菜鸟问题。 但我仍在搜索如何使用python 3连接到数据库。我在一些网站,论坛上看到的大部分内容都是关于python 2.是否有任何用于python 3的DBAPI或数据库驱动程序(特别是sybase,oracle和SQLSERVER)?
或者有没有人成功使用2to3移植sybase库? 我没有运气。 :(
I am new to python. Sorry if this is a noob question. But I am still searching on how can I connect to databases using python 3. Most of what I can see on some sites, forums, are about python 2. Is there any good DBAPI or database driver for python 3 (especially sybase, oracle and sqlserver)?
Or did anyone succeed on porting sybase library using 2to3? I have no luck. :(
最满意答案
要在Sybase ASE中使用Python(支持2.6,2.7和3.1),您需要做两件事:
用于Python的sybpydb扩展模块 Sybase Open Client SDKSybase 为希望使用Python连接到Sybase ASE的程序员提供了文档 。
如果您在Sybase SQLAnywhere中使用Python,则需要sqlanydb模块。
以下是使用Sybase SQLAnywhere和Python的文档 。
To use Python (2.6,2.7 and 3.1 are supported) with Sybase ASE you need two things:
sybpydb extension module for Python Sybase Open Client SDKSybase has documentation for programmers wishing to connect to Sybase ASE with Python.
If you are using Python with Sybase SQLAnywhere you need the sqlanydb module.
Here is the documentation for using Sybase SQLAnywhere with Python.
更多推荐
发布评论