简体   繁体   中英

\crosstabview works in PSQL commandline but doesn't work in PGADMIN

Below query works in PSQL but when I execute in PGADMIN it doesn't work. Any suggestions?

SELECT sales_stage,geo,count(opp_no) 
FROM bidanalysis group by sales_stage,geo order by 1 
\crosstabview

\crosstabview is a psql command and doesn't work anywhere else. You will need to use one of the many SQL alternatives to build a crosstab in pgAdmin – is the right answer but can't flag it as right because it is comment. @a_horse_with_no_name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM