Re: Right-justification of column results - Mailing list pgsql-novice

From Joshua b. Jore
Subject Re: Right-justification of column results
Date
Msg-id Pine.BSO.4.40.0204202337380.23923-100000@kitten.greentechnologist.org
Whole thread Raw
In response to Right-justification of column results  ("pinkrain ." <pinkrain@lycos.com>)
List pgsql-novice
-----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-----


pgsql-novice by date:

Previous
From: alberto bolchini
Date:
Subject: Correctly quoting inside plpgql functions
Next
From: "Joshua b. Jore"
Date:
Subject: Re: Permission denied when executing a query from a file