Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

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 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>