Skip to content

Commit 3b7340a

Browse files
committed
README: Add description to SAVEPOINT and ROLLBACK TO
1 parent 5e908e6 commit 3b7340a

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ Supported commands
6767
- `SELECT` / `INSERT` / `UPDATE` / `DELETE` / `MERGE` ... `;`
6868
- `INSERT`, `UPDATE`, `DELETE`, and `MERGE` automatically start a transaction.
6969
- For these commands, input continues across lines until a semicolon (`;`) or the string specified with the `-term` option is entered.
70-
- `COMMIT` / `ROLLBACK`
70+
- `COMMIT`
71+
- `ROLLBACK` `;` -- semicolon required
72+
- `SAVEPOINT savepoint;`
73+
(or `SAVE TRANSACTION savepoint;` for Microsoft SQL Server)
74+
- `ROLLBACK TO savepoint;`
75+
(or `ROLLBACK TRANSACTION savepoint;` for Microsoft SQL Server)
7176
- `SPOOL`
7277
- `spool FILENAME` .. open FILENAME and write log and output.
7378
- `spool off` .. stop spooling and close.
@@ -76,7 +81,6 @@ Supported commands
7681
- `START filename`
7782
- Start the SQL script given with filename
7883
- `REM comments`
79-
8084
- `DESC [tablename]` / `\D [tablename]`
8185
- When a table name is specified, shows the schema of that table.
8286
- If omitted, displays a list of tables.
@@ -97,6 +101,8 @@ Supported commands
97101
- `HOST command-line`
98102
- Executes an operating system command.
99103

104+
 
105+
100106
- `;` (or the string specified with `-term string`) is a statement seperator when script is executed
101107
- When sql is input interactively, terminator string (`;` or the string specified with `-term string`) is ignored
102108

README_ja.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ SQL-Bless は、そうした現場での教訓から生まれた、安全で再
6565
- `SELECT` / `INSERT` / `UPDATE` / `DELETE` / `MERGE` ... `;`
6666
- `INSERT`, `UPDATE` , `DELETE` は自動的にトランザクションを開始します
6767
- これらのコマンドは、セミコロン `;`、もしくは `-term string` で指定された文字列があるまで、Enter を押下しても入力が継続します。
68-
- `COMMIT` / `ROLLBACK`
68+
- `COMMIT`
69+
- `ROLLBACK` `;` -- semicolon required
70+
- `SAVEPOINT savepoint;`
71+
(or `SAVE TRANSACTION savepoint;` for Microsoft SQL Server)
72+
- `ROLLBACK TO savepoint;`
73+
(or `ROLLBACK TRANSACTION savepoint;` for Microsoft SQL Server)
6974
- `SPOOL`
7075
- `spool FILENAME` .. FILENAME を開いて、ログや出力を書き込みます
7176
- `spool off` .. スプールを止めてクローズします
@@ -94,6 +99,8 @@ SQL-Bless は、そうした現場での教訓から生まれた、安全で再
9499
- `HOST command-line`
95100
- OS コマンドを実行します
96101

102+
 
103+
97104
- スクリプトを実行する時、セミコロン `;`、もしくは `-term string` で指定された文字列が文の区切りとなります
98105
- インタラクティブに SQL を入力する時、セミコロン`;` もしくは`-term string` で指定された文字列は無視されます
99106

0 commit comments

Comments
 (0)