How to get the value of the Column length of a particular table ?
843859Apr 13 2009 — edited Apr 13 2009I 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