Re: [SQL] where'd the spaces come from

2001-08-03 Thread Bruce Momjian
> Hi Bruce, > > a fix for what? > If you're meaning the leading space, then the fix is in the followup post > that I made to my original quiestion. i.e. > > psql -c "select to_char(12,'xFM000');" > to_char > - > x012 > (1 row) > > The 'FM' removes the space. So the FM is the correc

Re: [SQL] where'd the spaces come from

2001-08-03 Thread Richard Huxton
From: "Bruce Momjian" <[EMAIL PROTECTED]> > > Hi Bruce, > > > > a fix for what? > > If you're meaning the leading space, then the fix is in the followup post > > that I made to my original quiestion. i.e. > > > > psql -c "select to_char(12,'xFM000');" > > to_char > > - > > x012 > > (1 r

Re: [SQL] where'd the spaces come from

2001-08-03 Thread Gary Stainburn
Hi Bruce, a fix for what? If you're meaning the leading space, then the fix is in the followup post that I made to my original quiestion. i.e. psql -c "select to_char(12,'xFM000');" to_char - x012 (1 row) The 'FM' removes the space. Gary On Thursday 02 August 2001 4:50 pm, Bruce

Re: [SQL] where'd the spaces come from

2001-08-02 Thread Bruce Momjian
Does anyone have a fix for this? > From: "Gary Stainburn" <[EMAIL PROTECTED]> > > > psql -c "select t.tregion || '/' || to_char(t.tnumber,'000') || '-' || > > to_char(m.mnumber,'00') as unitno from teams t, members m > > where m.mteam = t.tid;" > >unitno > > - > > SW/ 041- 03

Re: [SQL] where'd the spaces come from

2001-07-23 Thread Richard Huxton
From: "Gary Stainburn" <[EMAIL PROTECTED]> > psql -c "select t.tregion || '/' || to_char(t.tnumber,'000') || '-' || > to_char(m.mnumber,'00') as unitno from teams t, members m > where m.mteam = t.tid;" >unitno > - > SW/ 041- 03 > SW/ 041- 05 Looks like a buglet in to_char()s ha

Re: [SQL] where'd the spaces come from

2001-07-23 Thread Gary Stainburn
Hi all, forget it, I've solved it. I converted the calls to: to_char(t.tnumber,'FM000') and it worked. Gary On Monday 23 July 2001 10:18 am, Gary Stainburn wrote: > Hi all, > > Can someone please explain how to remove the spaces from the results of the > query below. The current output is al