diff options
Diffstat (limited to 'src/site/xdoc/index.xml')
-rw-r--r-- | src/site/xdoc/index.xml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index 6cef4a6..9a9d7a1 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -89,10 +89,8 @@ if(row != null) { <li>Creating a new table and writing data into it: <source>Database db = DatabaseBuilder.create(Database.FileFormat.V2000, new File("new.mdb")); Table newTable = new TableBuilder("NewTable") - .addColumn(new ColumnBuilder("a") - .setSQLType(Types.INTEGER)) - .addColumn(new ColumnBuilder("b") - .setSQLType(Types.VARCHAR)) + .addColumn(new ColumnBuilder("a", DataType.LONG)) + .addColumn(new ColumnBuilder("b", DataType.TEXT)) .toTable(db); newTable.addRow(1, "foo"); </source> |