trdsql icon indicating copy to clipboard operation
trdsql copied to clipboard

Multiple queries

Open agguser opened this issue 2 years ago • 1 comments

Please support multiple queries. Currently, it seems that only last query is output, e.g.

$ trdsql 'select 1; select 2,3'
2,3

Note: union is not used here because of different number of columns.

A workaround is to run multiple commands (e.g. trdsql 'select 1'; trdsql 'select 2,3'), but database will be created multiple times. And if input is from stdin, you have to save it first to share same input for each command.

agguser avatar Apr 12 '22 07:04 agguser

Thank you for the issue. I hope this can be done, but I don't think it will be used much in practice, and simplicity may be sacrificed.

noborus avatar Apr 13 '22 22:04 noborus

Implemented in v0.20.0. thank you.

noborus avatar Dec 15 '23 00:12 noborus