@@ -265,13 +265,13 @@ trdsql -q test.sql
265
265
"` - ` " or "` stdin ` " is received from standard input instead of file name.
266
266
267
267
``` console
268
- ps | trdsql -id " " "SELECT * FROM -"
268
+ cat test.csv | trdsql "SELECT * FROM -"
269
269
```
270
270
271
271
or
272
272
273
273
``` console
274
- ps | trdsql -id " " "SELECT * FROM stdin"
274
+ cat test.csv | trdsql "SELECT * FROM stdin"
275
275
```
276
276
277
277
### 4.2. <a name =' multiple-files ' ></a >Multiple files
@@ -645,7 +645,9 @@ PID,TTY,TIME,CMD
645
645
733213,pts/3,00:00:00,guesswidth
646
646
```
647
647
648
- ` -id " " ` doesn't recognize well when there are spaces in the column.
648
+ ` -id " " ` for ` CSV ` also works in many cases.
649
+ But ` -id " " ` does not recognize spaces in columns very well.
650
+
649
651
` -iwidth ` recognizes column widths and space separators.
650
652
651
653
### 4.14. <a name =' raw-output ' ></a >Raw output
@@ -734,16 +736,6 @@ Melon,2
734
736
Apple,3
735
737
```
736
738
737
- "- ih" sets the first line to column name
738
-
739
- ``` console
740
- $ ps | trdsql -ih -oh -id " " " SELECT \` PID\` , \` TTY\` , \` TIME\` , \` CMD\` FROM -"
741
- TIME,TTY,PID,CMD
742
- 00:00:00,pts/20,3452,ps
743
- 00:00:00,pts/20,3453,trdsql
744
- 00:00:05,pts/20,15576,zsh
745
- ```
746
-
747
739
Note: the available functions and their syntax depend on the driver you have chosen (mysql or postgres or sqlite). The default one is sqlite.
748
740
749
741
### 4.18. <a name =' join ' ></a >JOIN
0 commit comments