SFR
Truth fears no questions
One said:SFR ..
I didn't get your point.
I want to get the info that supply by DESC command( fields name and datatype)
Code:
statement = con.createStatement();
String selectQuery = "SELECT * FROM STUDENT" ;
ResultSet resultSet = null ;
if you change the SELECT * FROM STUDENTS to DESC STUDENTS...
here is an example of what is returned if I type DESC ALLOC at work:
Code:
SQL> desc alloc
Name Null? Type
----------------------------------------- -------- ----------------------------
DELIVERY NOT NULL VARCHAR2(30)
ITEM_NUMBER NOT NULL VARCHAR2(40)
DESCRIPTION NOT NULL VARCHAR2(50)
LOCATION NOT NULL VARCHAR2(9)
QUANTITY NOT NULL NUMBER(6)
MASTER_ORDER_NUMBER VARCHAR2(30)
ALT_LOC_RACK VARCHAR2(9)
RACK_SHORT_ENTERED NUMBER(1)
YOUR syntax for QueryTable is all correct.... but I do not know if - through the oracle jdbc driver - you can run the sql statement: desc STUDENTS instead of SELECT * FROM STUDENTS