Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Get Left characters from a field
Tony B wrote:
> Hi All
>
> I am a newbie to oracle so please be kind!
>
> I have a table with a field "Name" VarChar(20).
>
> How do I create a view that contains a field "ShortName" (10) that
> contains the first 10 characters from the "Name" field.
>
> Thanks for your help
>
> Tony
There's a lot of knowledgeable people here but not so many kind ones. We appreciate people that research things themselves before bringing questions here.
Oracle documentation is available at http://tahiti.oracle.com ... take the time to get familiar with it.
Tom Kyte has a good site at http://asktom.oracle.com with a good search facility.
create myshortview as select substr(name,1,10) "Shortname" from mybigtable; Received on Wed Nov 08 2006 - 17:01:33 CST
![]() |
![]() |