Home  >  Article  >  Database  >  Jackcess 1.2.13 发布,Java 访问 Access 数据库

Jackcess 1.2.13 发布,Java 访问 Access 数据库

WBOY
WBOYOriginal
2016-06-07 15:36:25977browse

Jackcess 1.2.13 包含新的方法用于在 数据库 和附件内容解码中查找复杂值类型的关系,修复了 CodeHandler 相关的一些小 bug。 Jackcess 是一个Java 类库,用来读写微软的Access 数据库 。 显示表格内容的源码: view sourceprint? 1 System.out.println(Data

Jackcess 1.2.13 包含新的方法用于在数据库和附件内容解码中查找复杂值类型的关系,修复了 CodeHandler 相关的一些小 bug。

Jackcess 是一个Java 类库,用来读写微软的Access 数据库

显示表格内容的源码:

view sourceprint?

1 System.out.println(Database.open(new File("my.mdb")).getTable("MyTable").display());


创建表并写入数据:

01 Database db = Database.create(new File("new.mdb"));

02 Table newTable = new TableBuilder("NewTable")

03   .addColumn(new ColumnBuilder("a")

04              .setSQLType(Types.INTEGER)

05              .toColumn())

06   .addColumn(new ColumnBuilder("b")

07              .setSQLType(Types.VARCHAR)

08              .toColumn())

09   .toTable(db);

 

10 newTable.addRow(1, "foo");
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:浅谈cocos2dx(16) 中外观模式Next article:Oracle VM