The Artima Developer Community
Sponsored Link

Java Answers Forum
create index or key with jackcess

1 reply on 1 page. Most recent reply: Jun 25, 2005 2:34 PM by bug not

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
hans

Posts: 2
Nickname: hans6fakie
Registered: Jun, 2005

create index or key with jackcess Posted: Jun 12, 2005 6:12 AM
Reply to this message Reply
Advertisement
hi,

i can create a table in a *.mdb-File, but i can't define keys for a table.

Database db=Database.create(new File("my.mdb");
Column a = new Column();
a.setName("a");
a.setSQLType(Types.INTEGER);
Column b = new Column();
b.setName("b");
b.setSQLType(Types.VARCHAR);
List aa;
aa=new LinkedList();
aa.add(0,a);
 
bye hans
aa.add(1,b);
db.createTable("NewTable",aa);


How can i set column a as primary key.
thanks for all help


bug not

Posts: 41
Nickname: bugmenot
Registered: Jul, 2004

Re: create index or key with jackcess Posted: Jun 25, 2005 2:34 PM
Reply to this message Reply
Jackcess doesn't support this functionality.

Flat View: This topic has 1 reply on 1 page
Topic: JAVA PROJECT INSTALLATION SETUP. Previous Topic   Next Topic Topic: Eclipse and JNI libraries

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use