How do i get the properties of a table via sql. That is if i had create a table with Create Table(field VARCHAR(10), .. how can i retrieve this property later it later?
I create a table using JDBC in an access database. I use Varchar(10) to specify i want a text field of ten characters
i.e. text(10) as mentioned above. I now, at a different stage of the project, am entering data into the database. I need to know the length of the field so i can validate input on the client side. The reason i am using varchar as this is a kinda cross platform way of saying text. Therefore my code will work using a MySql database. The main point is how do i get the length of the field back. Where else could i post this? I am kinda new to the website
Scenario A I want the actual length of the field. I am trying to write want be described as a client side trigger. I want to be able to use the same code for all text fields to make sue they do not exceed their required length.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.