Python 3和Sybase等数据库 [英] Python 3 and Sybase and other databases

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

问题描述

我是python的新人。对不起,如果这是一个noob问题。但我仍然在寻找如何连接到数据库使用python 3.大多数我可以看到在一些网站,论坛,关于python 2.是否有任何良好的DBAPI或数据库驱动程序的python 3(尤其是sybase,oracle和sqlserver)?

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)?

还有人成功使用2to3移植sybase库吗?我没有运气。 :(

Or did anyone succeed on porting sybase library using 2to3? I have no luck. :(

推荐答案

要使用Sybase ASE(需要支持2.6,2.7和3.1),您需要两件事:

To use Python (2.6,2.7 and 3.1 are supported) with Sybase ASE you need two things:


  • sybpydb Python扩充模组

  • Client SDK

  • sybpydb extension module for Python
  • Sybase Open Client SDK

Sybase有文档,供希望使用Python连接到Sybase ASE的程序员。

Sybase has documentation for programmers wishing to connect to Sybase ASE with Python.

如果您在Sybase SQLAnywhere中使用Python,则需要使用 sqlanydb 模块。

If you are using Python with Sybase SQLAnywhere you need the sqlanydb module.

用于将Sybase SQLAnywhere与Python结合使用的文档

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

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