小编Sai*_*Aye的帖子

如何在shell中更改输出模式?

我从 Linux shell 运行 psql 命令。结果输出看起来像一个表格:

  Name         Age
  -----------------
  John          24
Run Code Online (Sandbox Code Playgroud)

但我想用这样的逗号得到结果:

   Name,Age
   John,24
Run Code Online (Sandbox Code Playgroud)

如何从 shell 更改输出格式?我使用 Centos 5.5 和 postgresql 8.4。

shell postgresql psql

0
推荐指数
1
解决办法
3539
查看次数

标签 统计

postgresql ×1

psql ×1

shell ×1