$ echo"select * from film where col='abc'" | soar -report-type=fingerprint
echo"select * from film where col='abc'" | soar -report-type=fingerprint
```
Output
...
...
@@ -94,7 +94,7 @@ select * from film where col=?
## Convert UPDATE/DELETE/INSERT into SELECT
```bash
$ echo"update film set title = 'abc'" | soar -rewrite-rules dml2select,delimiter -report-type rewrite
echo"update film set title = 'abc'" | soar -rewrite-rules dml2select,delimiter -report-type rewrite
```
Output
...
...
@@ -103,11 +103,10 @@ Output
select*fromfilm;
```
## Merge ALTER SQLs
```bash
$ echo"alter table tb add column a int; alter table tb add column b int;" | soar -report-type rewrite -rewrite-rules mergealter
echo"alter table tb add column a int; alter table tb add column b int;" | soar -report-type rewrite -rewrite-rules mergealter
```
Output
...
...
@@ -119,7 +118,7 @@ ALTER TABLE `tb` add column a int, add column b int ;
## SQL Pretty
```bash
$ echo"select * from tbl where col = 'val'" | ./soar -report-type=pretty
echo"select * from tbl where col = 'val'" | ./soar -report-type=pretty
```
Output
...
...
@@ -138,6 +137,5 @@ WHERE
md2html comes with other flags, such as `-report-css`, `-report-javascript`, `-markdown-extensions`, `-markdown-html-flags`, you can get more self control HTML report.