Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL - pad a string to fill up to a certain length?

Re: SQL - pad a string to fill up to a certain length?

From: DA Morgan <damorgan_at_psoug.org>
Date: Sun, 16 Apr 2006 14:52:50 -0700
Message-ID: <1145224371.547921@yasure.drizzle.com>


dean wrote:
> Is there a command that will take a string (vcarchar2), and (if its
> less that N characters long, PAD it will spaces until it is N
> characters long? Like the reverse of TRIM.
>
> Thanks!
>
> Dean

LPAD and RPAD will do it.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Sun Apr 16 2006 - 16:52:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US