【问题标题】:Stops the message that shows the count of the number of rows affected in PostgreSQL?停止显示 PostgreSQL 中受影响的行数的消息?
【发布时间】:2014-05-21 07:18:44
【问题描述】:

:如何停止显示PostgreSQL中受影响的行数的消息?

数据库:PostgreSQL

版本:9.3

【问题讨论】:

  • 该反馈由 SQL 客户端工具显示,而不是“由 Postgres”显示。您使用的是psql 还是其他一些工具?
  • @a_horse_with_no_name, psql.

标签: postgresql rowcount


【解决方案1】:

你可以使用元命令\pset footer off:

psql (9.3.4) 键入“帮助”以获得帮助。 postgres=> 选择 42; ?柱子? ---------- 42 (1 行) postgres=> \pset 页脚关闭 默认页脚已关闭。 postgres=> 选择 42; ?柱子? ---------- 42 postgres=>

如果您想永久保存,可以将该命令放入您的~/.psqlrchttp://www.postgresql.org/docs/current/static/app-psql.html#AEN88713

【讨论】:

  • 太棒了!非常感谢。
猜你喜欢
  • 2022-11-10
  • 1970-01-01
  • 2016-12-31
  • 1970-01-01
  • 1970-01-01
  • 2016-10-30
  • 2017-08-19
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多