HI,
Just wondering is there anyway I can remove the number of row returned ?
something like set feedback off in oracle ;
select count(*) from sessions;
count
------------
7
(7 rows) => (possible to remove ?)
sql formatting in vertica
Moderator: NorbertKrupa
Re: sql formatting in vertica
got the answer =)
\pset footer
\pset footer
Re: sql formatting in vertica
Thanks for sharing this. Does anyone know how to do the same when executing a query from the command line?
- JimKnicely
- Site Admin
- Posts: 1825
- Joined: Sat Jan 21, 2012 4:58 am
- Contact:
Re: sql formatting in vertica
Use the -P switch:
Refer to the topic "SET NOCOUNT equivalent in Vertica" here: http://www.vertica-forums.com/viewtopic.php?f=6&t=619
Code: Select all
[dbadmin@v1 ~]$ vsql -P footer=off -c "select count(*) from sessions;"
count
-------
1
Jim Knicely
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.
Re: sql formatting in vertica
knicely87 wrote:Use the -P switch:
Refer to the topic "SET NOCOUNT equivalent in Vertica" here: http://www.vertica-forums.com/viewtopic.php?f=6&t=619Code: Select all
[dbadmin@v1 ~]$ vsql -P footer=off -c "select count(*) from sessions;" count ------- 1
@knicely87 thanks also for sharing =)