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: Oracle select statements

Re: Oracle select statements

From: navychief_rmc <navychief_rmcNOnaSPAM_at_hotmail.com.invalid>
Date: Wed, 03 Nov 1999 09:51:54 -0800
Message-ID: <2750ac20.68de2ca6@usw-ex0102-009.remarq.com>


Try this:
select substr(column_name,1,10) from table_name; the substr() has 1 for the starting point and 10 as the number of char to display.
if my table was address with name varchar2(100) and city varchar2(200) I would do
select substr(name,1,15) from address;
display only the first 15 char of name to the output. Good luck.

Received on Wed Nov 03 1999 - 11:51:54 CST

Original text of this message

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