I search for a simple way to select all columns except one in psql.
With psql I mean the interactive command line.
I would be happy with a tool that expands to * to a list of quoted column names. Then I could remove the column to remove by hand.
My question is just about the interactive usage of psql. It is not a duplicate of questions of people unhappy with the sql standard and who want to execute something like "select *-foo".
information_schemavia a pl/pgsql function to generate a list pretty easily, but that way it'd be two queries. – Craig Ringer Sep 11 '15 at 12:50foo_col:-) – guettli Sep 16 '15 at 14:31http://stackoverflow.com/questions/11341192/return-all-the-columns-in-a-mysql-table-in-a-string-format can help...
– BAE Sep 16 '15 at 20:22desccommand inpsql– Sep 16 '15 at 20:30