dcsimg
jdbc data truncation
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   A_D
Posted On:   Tuesday, April 4, 2006 06:19 PM

hi i've created a multithreaded client_server application using dbcp but the problem is this:
i've created a table with a varchar field and i send in a string in a variable reading by the Stdin but what happends if i send a string larger than the field admit ?
for example if i created this: text varchar (20) and i send a string length of 25 characters obviously it send me a data truncation; so the question is this: How can I handle this exception and how i can save in the table created if this exceeds the length declared????
if anyone knows please helpme anyway thanks in advice

About | Sitemap | Contact