1
我在PostgreSQL 9.2工作,我想做出选择PostgreSQL的选择查询maniuplation
psql -h localhost -U user -c "select var_val from public.config where var_name='test_key'"
结果是
var_val
---------
90
(1 row)
,但我想只有90
任何人可以帮助我吗?
您是否只是希望在没有其他格式和结果计数的情况下输出值90?也许从这些信息开始:http://www.postgresql.org/docs/9.3/static/app-psql.html – ServerMonkey
+1因为你提到了你的版本,虽然这是一个手动读的问题。 –