Sybase module for Python

程序名称:Sybase module for Python

授权协议: BSD

操作系统: 跨平台

开发语言: Python

Sybase module for Python 介绍

这是 Python 用来连接 Sybase 数据库的模块。

示例代码

import sys, string, Sybase

db = Sybase.connect('SYBASE', 'sa', '', 'sybsystemprocs')  
c = db.cursor()  
if len(sys.argv) > 1:  
    c.execute('select c.text from syscomments c, sysobjects o'  
              ' where o.name = @name and o.type = "P" and c.id = o.id'  
              ' order by c.colid', {'@name': sys.argv[1]})  
    print string.join([row[0] for row in c.fetchall()], '')  
else:  
    c.execute('select name from sysobjects where type = "P" order by name')  
    print string.join([row[0] for row in c.fetchall()], '\n')

Sybase module for Python 官网

http://python-sybase.sourceforge.net/

相关编程语言

SchemaCrawler提供一组用于增强标准JDBC Metadata的...
ER Master 是一个用于设计ER模型图的Eclipse插件。提...
Eclipse下用于画数据库ER图的插件,主要特性如下: ...
PowerDesigner 是Sybase的企业建模和设计解决方案,...
Mogwai ERDesigner NG是一个实体关系建模工具类似于...
Power*Architect 是一个数据建模工具,主要用在数据...