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 -> [?] pl/sql string function

[?] pl/sql string function

From: Poguedauff <pogue_at_pogue.it>
Date: Wed, 3 Nov 1999 12:30:56 -0000
Message-ID: <7vp688$ed2$1@fe2.cs.interbusiness.it>


I am trying to write an SQL statement that insert in the leftmost part of a varchar2 n blanks where n is the length of the field minus the existing characters of the field.
An example:

field name = pippo
field size = 8 (varchar2)
field value = 'ABC'

what I want the field value to be is = ' ABC'

Did anybody have the same problem? Any suggestion (specially for inserting n blanks , I know how I can calculate the n value withe the length function)?

Thanks in advance to everybody. Received on Wed Nov 03 1999 - 06:30:56 CST

Original text of this message

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