Skip site navigation (1) Skip section navigation (2)

Re: Right-justification of column results

From: "Joshua b(dot) Jore" <josh(at)greentechnologist(dot)org>
To: "pinkrain (dot)" <pinkrain(at)lycos(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Right-justification of column results
Date: 2002-04-21 04:45:24
Message-ID: (view raw or whole thread)
Lists: pgsql-novice
Hash: SHA1

Consider using lpad() to prepend stuff. lpad('text',5,'_') evaluates to

Joshua b. Jore

On Fri, 19 Apr 2002, pinkrain . wrote:

> Hi,
> Is there any way of justifying the text in a column that is returned as a result of the SQL query?  This (right-justification of text in a column) has been asked of me, but intuitively, I can't think of a way to do it.  I'm using PgAccess to view the SQL results.
> Thanks.
> See Dave Matthews Band live or win a signed guitar
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
Version: GnuPG v1.0.6 (OpenBSD)
Comment: For info see


In response to

pgsql-novice by date

Next:From: Joshua b. JoreDate: 2002-04-21 14:54:43
Subject: Re: Permission denied when executing a query from a file
Previous:From: alberto bolchiniDate: 2002-04-20 14:08:42
Subject: Re: Correctly quoting inside plpgsql functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group