Two Laptop Bag*
The moose likes JDBC and the fly likes How to get the file name and its data type? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to get the file name and its data type?" Watch "How to get the file name and its data type?" New topic
Author

How to get the file name and its data type?

Zhixiong Pan
Ranch Hand

Joined: Jan 25, 2006
Posts: 239
Hi ranchers,

I am planning to write a method which a parameter of tableName(String type) will be passed in and will return a vector. That vector's element is a record which is a String array. To realize that function, I need: 1.to get the table's fileds count which is the length to initial array; 2. the first, second ... the n th filed name; 3. the type of the first, seconde...the n the filed.
Could you help me please?


SCJP 1.4 SCJD
Vallidevi Appana
Greenhorn

Joined: Jun 30, 2006
Posts: 25
You can use the following code to get number of fields, each field name and each field type in the table.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get the file name and its data type?
 
Similar Threads
Loading an array in jsp using strut framework
Data File Format & Schema File
SSL, https and post
Disable Copy/Paste in a Textbox
Enhanced for Loop(for Arrays)