|
HSQLDB example source code file (dsv-sample.sql)
The HSQLDB dsv-sample.sql source code/* * $Id: dsv-sample.sql 358 2007-08-08 12:42:51Z unsaved $ * * Imports delimiter-separated-values, and generates an output * reject .dsv file, and a reject report. * * To execute, set up a SqlTool database urlid (see User Guide if you don't * know how to do that); then (from this directory) execute this script like * * java ../lib/hsqldb.jar mem dsv-sample.sql * * (replace "mem" with your urlid). */ /** This is the default on UNIX. * Our *.dsv test files are stored as binaries, so this is required * to run tests on Windows: */ * *DSV_ROW_DELIM = \n CREATE TABLE sampletable(i INT, d DATE NOT NULL, b BOOLEAN); /* If you dont' set *DSV_TARGET_TABLE, it defaults to the base name of the .dsv file. */ * *DSV_TARGET_TABLE = sampletable /* By default, no reject files are written, and the import will abort upon * the first error encountered. If you set either of these settings, the * import will continue to completion if at all possible. */ * *DSV_REJECT_FILE = ${java.io.tmpdir}/sample-reject.dsv * *DSV_REJECT_REPORT = ${java.io.tmpdir}/sample-reject.html \m sample.dsv /* Enable this line if you want to display all successfully imported data: SELECT * FROM sampletable; */ \p \p See import reject report at '*{*DSV_REJECT_REPORT}'. Other HSQLDB examples (source code examples)Here is a short list of links related to this HSQLDB dsv-sample.sql source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.