Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the value of the Column length of a particular table ?

843859Apr 13 2009 — edited Apr 13 2009
I am using Eclipse Europa for coding in java.My Compiler Version is 1.4.My Database driver is Sprinta.I want to insert some values in a table ,but if the value is of a length is greater than the actual length of the column i am getting a run time exception. I am facing this issue because we donot have rights to access the database details on the live server.Also the table are constantly altered on the remote server.
I searched on google but could not find anything suiting me.I got some references of JTable,which i have never used.I use PrepareStatement Class to set my parameters for insertion.

Can i check the actual length of the column before inserting values in it ?

Please let me know if my question is clear and any further details are needed.
Thanks for your consideration.

Edited by: amtidumpti on Apr 13, 2009 3:40 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2009
Added on Apr 13 2009
1 comment
325 views