Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SQL查询的标准Python模块是什么?_Python_Sql_Oracle - Fatal编程技术网

SQL查询的标准Python模块是什么?

SQL查询的标准Python模块是什么?,python,sql,oracle,Python,Sql,Oracle,我想知道SQL查询的标准Python模块是什么 我特别为Oracle数据库编写查询。我希望在脚本和小程序的上下文中编写快速、简单和直接的查询。DB-API是从Python访问SQL数据库的标准API 下面的页面提供了进一步的信息:每个SQL数据库都有自己的模块来实现。Oracle使用。这比SQLAlchemy更可取吗?@ktm5124:什么?“SQL查询”似乎表示“原始”SQL。SQLAlchemy不做“原始”SQL。它要么将SQL重写为泛型(用Python表示法),要么使用ORM,或者两者兼而

我想知道SQL查询的标准Python模块是什么


我特别为Oracle数据库编写查询。我希望在脚本和小程序的上下文中编写快速、简单和直接的查询。

DB-API是从Python访问SQL数据库的标准API


下面的页面提供了进一步的信息:

每个SQL数据库都有自己的模块来实现。Oracle使用。

这比SQLAlchemy更可取吗?@ktm5124:什么?“SQL查询”似乎表示“原始”SQL。SQLAlchemy不做“原始”SQL。它要么将SQL重写为泛型(用Python表示法),要么使用ORM,或者两者兼而有之。请更新您的问题以解释您想做什么。洛特,你真是居高临下。我在Java方面有10年的经验,在C方面有5年的经验,在Python方面只有几天的经验。当我完全不熟悉Python时,没有必要把我当作白痴。是的,我指的是原始SQL查询。与中一样,将SQL查询作为字符串参数传递给python函数。谢谢你在炼金术上给我启发。看来这根本不是我想要的。@ktm5124:别把它当回事,他对每个人都是这样。如果你和我一样试图在Mac上安装这个,我发现下面的链接很有用: