惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
GbyAI
GbyAI
L
LINUX DO - 最新话题
A
Arctic Wolf
T
Tor Project blog
G
GRAHAM CLULEY
I
InfoQ
博客园_首页
IT之家
IT之家
The Register - Security
The Register - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
K
Kaspersky official blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
U
Unit 42
PCI Perspectives
PCI Perspectives
量子位
P
Palo Alto Networks Blog
S
Securelist
T
Troy Hunt's Blog
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
罗磊的独立博客
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
NISL@THU
NISL@THU
C
Cisco Blogs
T
Threatpost
有赞技术团队
有赞技术团队
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - L.Net

sql server不存在或拒绝访问【转】 Ora-28000 the account is locked windows2003与文件共享有关的几个进程 [转]“您试图从目录中执行CGI、ISAPI 或其他可执行程序...” 博文阅读密码验证 - 博客园 博文阅读密码验证 - 博客园 【转】RDLC使用经验 Windows XP .net3.5 环境搭建 showModalDialog数据缓存问题 - L.Net - 博客园 November Report Viewer工具栏显示英文 (转)Reference Equals,==,Equals sql declare声明变量 windows2003计划任务不能启动,"指定的错误是:0x80070005: 拒绝访问" 不可恢复的生成错误 每天知道多一点(二) 还是得继续努力 每天知道多一点--[转]静态构造函数 每天知道多一点
更新Oracle中的long字段
L.Net · 2009-06-30 · via 博客园 - L.Net

在通过sql语句为oracle中的long字段插入数据时提示错误:

我有这样一个问题,我在c#的组件中,以OleDbComment.ExecuteNonQuery()方法执行一个将长字符串更新到一个Long(或Clob)字段SQL语句,发现字符串较少时可以更新进去,大符串大时(应该超过4000)就无法插入,报字串超出范围的信息。

解决方法:

string clobstr=[这里是一个长字符串]
string sql=update tablename set clobstr=:clobstr where id=1;
OracleCommand cmd = new OracleCommand(sql,oraconn);
cmd.Parameters.Add (":clobstr", OracleType.Clob);
cmd.Parameters[":clobstr"].Value = clobstr;