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: Pine.BSO.4.40.0204202337380.23923-100000@kitten.greentechnologist.org (view raw or flat)
Thread:
Lists: 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-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
> 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(at)postgresql(dot)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-----


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-2014 The PostgreSQL Global Development Group