Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do we dispaly only particular row using jackcess

 
charu java
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi this is the sample piece used jackcess to access the .mdb file and display the table data
public class Test {
public static void main(String args[]){
try {
System.out.println(Database.open(new File("\\\\aa.bb.com\\root\\Java\\access.mdb"))
.getTable("MASTER").display());
} catch (IOException e) {
e.printStackTrace();
}

}
}

Is there any code is available to display only one particular row based on condition like how do we display using sql where condition using jackcess.
I am using jackcess1.2.8 jar

Thanks in Advance
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Jackcess home page on SourceForge has an example that does exactly that. My advice is the same as yesterday: start by reading the FAQ and the Cookbook.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic