腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
CX
ORACLE
-
Python
::
Update
语句
不
工作
python
、
sql
、
python-3.x
、
cx-oracle
我正面临着无法使用
update
语句
从
Python
更新
ORACLE
DB表的问题。数据库连接良好,我可以获取记录。 每当我更新字符/字母数字字符串值时,我都会收到以下错误。我不断地收到错误::
cx
_
Oracle
.DatabaseError: ORA-00904::无效标识符 令人惊讶的是,对于数值字段值的更新,这不是问题。
Python
版本-3.7Windows7.1Windows10(个人计算机)
CX
_
Oracle
11.2
浏览 36
提问于2019-06-25
得票数 1
1
回答
为什么使用
cx
_
Oracle
插入脚本挂起
python
、
oracle
我是
Python
新手,使用
cx
_
Oracle
.execute将一行插入到表中。执行之前的print
语句
指示它挂起执行。一个简单的select
语句
使用相同的包
工作
。
Python
版本为2.7 我也在Anaconda上试过,同样的结果。
浏览 4
提问于2017-05-25
得票数 9
1
回答
python
cx
_
Oracle
游标
不
返回有效查询的行。
python
、
sql
、
cx-oracle
、
database-cursor
、
fetchall
我的
cx
_
Oracle
游标没有返回任何有效查询的行,我也不知道原因。我在调试期间从cursor.statement复制/粘贴,以验证完全相同的
语句
,没有排印。1
不
返回任何行,但返回SQLPlus/SQLPlus中的预期行,等等。使用
cx
_
Oracle
查询2按预期
工作
我已经验证了特权--但这显然是有效的,因为我正在使用(并验证)用户/连接,
cx
_
Oracle
中的用户/连接与SQL中的相同。我使用
浏览 7
提问于2016-07-18
得票数 4
回答已采纳
1
回答
在cmd中安装
CX
_
ORACLE
时出错
python
、
cx-oracle
当我试图通过windows 10中的cmd安装
cx
_
Oracle
时,我得到了下面的错误。当我第一次安装时,它要求我安装MS Visual C++ 14,并设置路径,最后在命令提示符中显示。由于EnvironmentError无法安装软件包 Collecting
cx
_
Oracle
==5.1.3\\
python
37-32\\lib\\site-packages\\
cx
浏览 1
提问于2019-01-28
得票数 0
1
回答
oracle
如何更新生成csv文件的查询,并通过
python
将结果打印或写入特定的路径位置?
python
、
oracle
、
csv
有没有人可以帮我看看我的帖子:我无法通过
python
将
oracle
更新查询结果打印到csv文件中的特定路径位置。我能够通过
python
在相同的特定位置路径中生成用于
oracle
select查询结果的csv文件,但是每当我试图为更新查询结果创建新的csv文件时,我能够在该特定位置生成csv文件,但是不能通过
python
在该生成的csv文件中打印
oracle
更新查询结果。示例代码:import csv import
浏览 0
提问于2021-11-23
得票数 0
1
回答
无法在docker镜像中导入
cx
_
Oracle
python
、
oracle
、
docker
、
cx-oracle
我正在用docker构建一个
python
文件。在这个
python
文件中,我用import
cx
_
Oracle
对
oracle
做了一些事情。我可以通过ternimal成功运行
python
文件: [root@master files]#
python
3 myfile.py 然后,我基于这个文件构建一个docker镜像。下面是Dockerfile的内容 FROM
python
:3.6W
浏览 32
提问于2019-04-24
得票数 0
回答已采纳
3
回答
Merge raw sql
语句
不
工作
是sqlalchemy连接execute
python
、
sql
、
oracle
、
merge
、
sqlalchemy
当我们使用sqlalchemy通过
python
执行原始merge sql
语句
时,它没有添加预期的行,并且在
python
中显示执行成功,但是当在db中执行查询时,表中填充了所需的数据。对于下面的代码,如果我使用
python
中的任何
update
或select
语句
,它都会成功地给出预期的输出from sqlalchemyimport create_engine, types
oracle
_connection_
浏览 1
提问于2019-10-01
得票数 2
1
回答
cx
_
Oracle
连续查询通知
python
、
oracle
、
ubuntu
、
cx-oracle
、
query-notifications
我正在使用Amazon
工作
空间,并使用VPN通过SSH Ubuntu 16.04实例进行连接。我使用
python
连接
Oracle
数据库11g,我需要使用
cx
_
Oracle
连续查询通知,并且我从这个页面在互联网上找到了这段代码 print "DELETE of rowid:", row.rowid if row.opera
浏览 4
提问于2016-06-16
得票数 2
1
回答
Python
cx
_
Oracle
-如何将数组绑定到cursor.execute()
python
、
cx-oracle
我有以下SQLwhere my_param in :params 如何将
python
或其他数组绑定到
cx
_
Oracle
游标执行表达式?
浏览 2
提问于2019-02-22
得票数 3
2
回答
JupyterHub
Oracle
InstantClient和
cx
_
Oracle
安装
python
、
oracle
、
cx-oracle
、
jupyterhub
、
instantclient
I创建了一个新的Anaconda环境"
cx
_
oracle
_env ",并在终端中安装了包
cx
_
Oracle
:使用
Python
3.7在静音模式下创建一个名为"
cx
_
oracle
_env“的新Anaconda环境,conda create -n
cx
_
oracle
_env
python
=3.7 -y # >>>>返回无警告/错误# >>&g
浏览 4
提问于2021-03-11
得票数 0
回答已采纳
1
回答
Python
中的
cx
_
oracle
和Asyncio以及SQLAlchemy
oracle
、
sqlalchemy
、
python-asyncio
、
cx-oracle
Asyncio的这一功能在最新版本(截至2019年12月)的
cx
_
Oracle
中可用吗? 我正在使用下面的代码片段,它正在
工作
,但不确定这是否是为
Oracle
做异步调用的完美方式?import asyncio conn_start_time = time()
oracle
_tns_conn= '
oracle
+
cx
_
oracle
:/
浏览 179
提问于2019-12-25
得票数 1
1
回答
如何将
python
cx
_
Oracle
与假脱机一起使用
python
、
oracle
、
oracle11g
、
cx-oracle
我使用
python
3.4与
oracle
(11g)/sql开发人员进行交互。
cx
_
Oracle
不能处理sqlPlus
语句
是真的吗?似乎是说的那一页。那么,我们如何才能通过
python
执行'spool‘命令呢?守则:db_conn =
cx
_
Oracle
.connect(...)cursor.execute(
浏览 4
提问于2016-10-30
得票数 0
回答已采纳
2
回答
使用conda获取正确案例的
cx
_
Oracle
python
、
pip
、
anaconda
、
cx-oracle
、
conda
我是
Python
新手。我在Ubuntu上使用Anaconda 4.1.1 (
Python
3.5.2)发行版。我开始从事一个使用的项目。当然,O可以使用
cx
_
Oracle
安装pip。(我想支持
Python
3.5,所以我需要最新的
cx
_
Oracle
5.2.1。)只有一个问题:所有通道都提供
cx
_
oracle
,而不是
cx
_
Oracle
(请注意大小写差异)。因为
Python
模块导入显然
浏览 1
提问于2016-09-09
得票数 3
回答已采纳
1
回答
在
Python
2.7中,
cx
_
Oracle
在连接时静默崩溃
python
、
windows
、
oracle
、
ipython
、
cx-oracle
我使用的是64位Windows 7,安装了
Python
2.7和
Oracle
instant client 10.2.0.3。然后我试着用下面这样的代码连接ad =
cx
_
Oracle
.makedsn('问题出在ST3和ipytho
浏览 0
提问于2014-09-04
得票数 0
1
回答
从
Python
字典创建
Oracle
Update
语句
python
、
oracle
、
cx-oracle
我在
python
脚本中有一个字典,其中包含column_name:value形式的数据,我想从这个字典中创建
update
语句
。我使用的是
python
3.3和
cx
-
oracle
,我找到了答案: SQL = '
UPDATE
scheme SET {}'.format(', '.join('{}=%s'.formatschemes_dict.values())TypeError:
浏览 3
提问于2013-08-14
得票数 0
1
回答
更新表时
cx
_
Oracle
执行/执行错误
python
、
cx-oracle
我需要从
Python
代码中适当地更新
Oracle
表。这是一段简单的代码,但我遇到了
cx
_
Oracle
.DatabaseError: ORA-01036:非法变量名称/数字,尝试如下 cursor.execute(sql_
update
, id) # -> ends with errorid_as_l
浏览 5
提问于2020-06-25
得票数 1
回答已采纳
2
回答
Anaconda 3.5 (64位Windows)安装
cx
_
Oracle
python
、
oracle
、
anaconda
、
cx-oracle
我已经安装了Anaconda3.5for Windows64位,我需要使用"
cx
_
Oracle
“包连接到
Oracle
数据库。packages conflict with each other: -
python
3.5* - vc
浏览 1
提问于2016-01-07
得票数 8
2
回答
(我正在尝试重新安装
cx
_
Oracle
)
python
、
pip
、
cx-oracle
,
cx
_
Oracle
一直抱怨我没有使用之前安装的版本12:Traceback (most recent call last):我尝试遵循解决方案,将我的
cx
_
Oracle
路径添加到LD_LIBRARY_PATH中,但它仍然不起作用。/
cx
_
Oracle
-5.2.1.dist-info 请注意,
浏览 2
提问于2016-11-14
得票数 1
回答已采纳
2
回答
oracle
错误代码处理
cx
_
oracle
python
、
oracle
我正在尝试使用
cx
_
ORacle
从
Python
访问
Oracle
。 我有一个
不
返回任何行的select
语句
,即: NO_DATA_FOUND..and,这就是我处理错误情况的方式。当我执行这段代码时,
cx
_
oracle
.error、
cx
_
oracle
.Databaseerror或
cx
_
oracle
.Warning没有捕获到错误NO_DATA_FOUND。result = self.c
浏览 0
提问于2012-09-26
得票数 0
2
回答
cx
_
Oracle
- DLL加载失败
python
、
dll
、
importerror
、
cx-oracle
我在用
Python
导入
cx
_
Oracle
时遇到了问题。我知道在这里已经讨论了很多关于
cx
_
Oracle
的问题,但是在阅读了所有相关的主题之后,我似乎无法找到解决问题的方法。我需要在远程
工作
站上安装
cx
_
Oracle
,但是它不能
工作
,而它在我的计算机上
工作
得很好(我可以成功地导入模块并连接到我的DB)。在
cx
_
oracle
.pyd上运行Dependancy (在我的计算机上运行得很好
浏览 3
提问于2014-06-09
得票数 10
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
用Python连接Oracle数据库容易吗?
读取-存储-发送
使用 Python和Oracle 数据库实现高并发性
Oracle SQL自动化审核工具的实现
Oracle 19C入门到精通之SQL数据操纵语言DML
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券