Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pls give me solution to solve "String literal too long" problem:

 
rose deng
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
When I use jdbc to do update to a table in oracle database(the type of updated field is Clob), i got following error: String literal is too long.
Could anyone throw a light on how to solve this problem.
Thanks Soo much.
 
Tanel Alumae
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually this happens when one tries to put the field value directly into the SQL statement. Are you using parameters?
E.g.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic