📄 dsv-sample.sql
字号:
/*
* $Id: dsv-sample.sql,v 1.1 2007/08/09 23:56:24 unsaved Exp $
*
* 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}'.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -