pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: George Weaver <georgew1@mts.net>
To: pgsql-sql@postgresql.org
Subject: Re: Looks are important
Date: Wed, 12 Nov 2003 15:56:12 -0800
Message-ID: <200311121556.12887.josh@agliodbs.com> (raw)
In-Reply-To: <00ac01c3a96a$a165b290$6400a8c0@Dell4500>
References: <00ac01c3a96a$a165b290$6400a8c0@Dell4500>

George,

> SELECT RPAD(no,30,' ') || tableb.kind FROM tablea 
> WHERE tablea.kind = tableb.kind

Try SELECT RPAD(no, (35 - LENGTH(tableb.kind)), ' ')

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (7+ messages)  latest in thread

Message-ID: <200311121556.12887.josh@agliodbs.com>
Permalink:  ../200311121556.12887.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200311121556.12887.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, georgew1@mts.net
  Subject: Re: Looks are important
  In-Reply-To: <200311121556.12887.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox