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. :(

有帮助吗?

解决方案

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 SDK

Sybase 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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top