Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle select statements
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.
![]() |
![]() |