Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding /gx and /g mode #471

Closed
abhishekgahlot2 opened this issue Jun 25, 2024 · 0 comments
Closed

Question regarding /gx and /g mode #471

abhishekgahlot2 opened this issue Jun 25, 2024 · 0 comments

Comments

@abhishekgahlot2
Copy link

Hi, The repo is great.

I am trying it out. I have couple of questions.

I want to run a big query and pass the output to file as json.

I have tried so far is

ch:clickhouse@10/default=> select * from connect_state; \gx  (format=json) output.txt
ch:clickhouse@10/default=> select * from connect_state; \g  (format=json) output.txt

both seems to be doing the same for me.

Wanted to ask which one will not give output in shell and whichone will just output to shell and also dump the data to output.txt

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant