In this section, schema of a table will be fetched by using 'Resultset' object and 'ResultSetMetaData' object .
getschema.java
import java.sql.*; |
OUTPUT
| C:\Program
Files\Java\jdk1.6.0_18\bin>java getschema Table Name : Emp_sal Field size DataType Emp_code 11 INTEGER Emp_salary 30 VARCHAR Emp_designation 30 VARCHAR |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.