我可以使用Java获取存储在ACCESS表的description列中的详细信息 [英] Can I get the detail stored in description column of ACCESS table using Java
本文介绍了我可以使用Java获取存储在ACCESS表的description列中的详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的专家
当我们在MS Access中创建表格时,我们在说明栏中输入字段说明。
我可以从表格中获取字段名称和数据类型,但是如何从表格中获取说明。
以下是代码我得到字段名称
Dear Experts
When we create table in MS Access we enter description of field in description column.
I am able to get the field name and data type from the table but how can I get the description from the table.
Here is the code by which I am getting field name
public ArrayList<String> fetchtable(String value)
{
try
{
makeConnection();
String str1="Select * from "+ value;
ResultSet rs = st.executeQuery(str1);
rsmd = rs.getMetaData();
NumOfCol= rsmd.getColumnCount();
for(int i=1; i <= NumOfCol; i++)
{
ColumnName = rsmd.getColumnName(i);
System.out.println(ColumnName);
columns.add(ColumnName);
}
//System.out.println("Columns Valuessss is:" +columns);
}catch(Exception ae){
ae.printStackTrace();
}
return columns;
}
推荐答案
这篇关于我可以使用Java获取存储在ACCESS表的description列中的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文