Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

to_char function in stored procedure - topic by sateesh240

$
0
0
Hi All,   The below query works fine when i ran it in sql assistant.   sel cast(to_char(trim(extract( month from <table.date_column>)),'09')||'01'||to_char(trim(extract( year from <table.date_column>)),'0999') as date ) from table;   when I run the same query with insert as below  in a stored procedure gives error as ' function 'TO_CHAR' does not exist'     insert into table (.............) as

read more


Viewing all articles
Browse latest Browse all 27759

Trending Articles