To clarify when I use the function in a create table as select
statement I get a column width of 4000. But I found a way to reduce
this somewhat using a substr statement in the select. Bad? If I don't
use the substring I get a column width of 4000
CREATE table coll_count_2 as
SELECT Count(*) as ORDER_MNEMONIC_Count,
encounter,
substr(Find_Category(coll_loc_name),1,25) as Collection_Loc_Category
On Oct 25, 12:23 pm, Michael Moore <
michaeljmo...@gmail.com> wrote:
> Dan,
>
> Your return type is VARCHAR2, not VARCHAR2(25) (which would not be allowed)
> . So, the fact that your temp_variable is varchar2(25) is irrelevant.
>
> Not sure what you mean by "getting" as in "getting a column width of 4000".
> Also, not sure what you mean by "creates column of VARCHAR(4000)".
>
> What is it that you are doing that shows you "4000"?
>
> Mike
>