Thread: Right-justification of column results

Right-justification of column results

From
"pinkrain ."
Date:
Hi,

Is there any way of justifying the text in a column that is returned as a result of the SQL query?  This
(right-justificationof text in a column) has been asked of me, but intuitively, I can't think of a way to do it.  I'm
usingPgAccess to view the SQL results. 

Thanks.


See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp

Re: Right-justification of column results

From
"Joshua b. Jore"
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

Joshua b. Jore
http://www.greentechnologist.org

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-justificationof text in a column) has been asked of me, but intuitively, I can't think of a way to do it.  I'm
usingPgAccess to view the SQL results. 
>
> Thanks.
>
>
> See Dave Matthews Band live or win a signed guitar
> http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (OpenBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8wkPmfexLsowstzcRAmIfAKDFkhj242hscxsJb1kOOL9W8kjTkwCfcdgQ
Th583AGN3do9WszTKz2GQCM=
=B4rs
-----END PGP SIGNATURE-----