Jackcess 1.2.13 包含新的方法用于在 数据库 和附件内容解码中查找复杂值类型的关系,修复了 CodeHandler 相关的一些小 bug。 Jackcess 是一个Java 类库,用来读写微软的Access 数据库 。 显示表格内容的源码: view sourceprint? 1 System.out.println(Data
<link href=”/js/syntaxhighlighter/common2_cnblogs.css” rel=”stylesheet” type=”text/css” />
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) |
06 | .addColumn( new Col本文来源gaodai$ma#com搞$$代**码)网8umnBuilder( "b" ) |
07 | .setSQLType(Types.VARCHAR) |
10 | newTable.addRow( 1 , "foo" ); |