我有
select * from generale where titolo ~* 'hp-ux' order by titolo;
autori | titolo | casaeditrice
-------------------+-------------------------------------------------------------------------------------------------------------+----------------------------
Asghar Ghori | HP Certified Systems Administrator: Hp-ux 11i V3: Exam Hp0-a01: Training Guide and Adminstrator's Reference | Endeavor Technologies Inc.
Autori vari | HP-UX tuning and performance | Prentice Hall
Book Entry Hp Certified...等的行标题很长我想截断到这个
Asghar Ghori | HP Certified Systems Administrator:....
... 不重要我想将列输出截断为最多 20 个字符,在 oracle 上我使用column titolo format a20
如何在 postgres 上执行此操作?谢谢
尝试这个
它会截断您的输出,但不会触及表中的数据