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

How do I turn off the row count output from a select statement #50

Closed
kishorerathi opened this issue May 24, 2018 · 3 comments
Closed

Comments

@kishorerathi
Copy link

How do I turn off the row count output

[Connected with driver mssql (Microsoft SQL Server 11.0.2100.60, RTM, Enterprise Edition: Core-based Licensing (64-bit))
Type "help" for help.

ms:incap@XX.XX.XX.XX:1433/sfstage=> select 'someValue' colName;
   colName   
+-----------+
  someValue  
(1 rows)

would like to turn off the "(1 rows)" feedback line.

@kenshaw
Copy link
Member

kenshaw commented May 25, 2018

There is no way to turn this off yet. While there are plans to fully implement the \pset output commands from psql, I have no idea on when that might be done -- I do not have a lot of free development time. A pull request implementing it would be most welcome! In the interim, if you are using usql for report generation (or some such), I'd suggest passing it through a command line tool (sed, awk, tail, etc.) to strip the line.

@nineinchnick
Copy link
Member

I gave it a shot in xo/tblfmt#9 - no changes in this repo would be necessary except for bumping the version of tblfmt in go.mod

@nineinchnick
Copy link
Member

This is now in master and this issue can be closed.

sq::memory:=> select 1;
+---+
| 1 |
+---+
| 1 |
+---+
(1 row)

sq::memory:=> \pset footer off
Default footer is off.
sq::memory:=> select 1;
+---+
| 1 |
+---+
| 1 |
+---+

sq::memory:=>  

@kenshaw kenshaw closed this as completed Jan 17, 2021
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

3 participants