sample=# select * from 家計簿; 2018-02-03 | 食費 | コーヒーを購入 | 0 | 380 2018-02-10 | 給料 | 1月の給料 | 280000 | 0 2018-02-11 | 教養娯楽費 | 書籍を購入 | 0 | 2800 2018-02-14 | 交際費 | 同期会の会費 | 0 | 5000 2018-02-18 | 水道光熱費 | 1月の電気代 | 0 | 7560 sample=# \d public | 家計簿 | table | postgres public | 家計簿アーカイブ | table | postgres public | 家計簿集計 | table | postgres sample=# \d 家計簿; 日付 | date | 費目 | character varying(20) | メモ | character varying(100) | 入金額 | integer | 出金額 | integer |
上記出力結果より、select実行時、
列名が出力されないのですが、列名も合わせて出力する場合はどのように出力する必要がありますでしょうか?
バージョンは
SQL:
PostgreSQL 9.6.15 on x86_64-pc-linux-gnu, compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit
Linux:
Debian GNU/Linux 9
となります。
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー