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

Error while compiling a SP!!! - response (1) by dnoeth

$
0
0
Your code mixes SUBSTRING and SUBSTR syntax: substring(cast(extract(year from date) as varchar(4)) FROM 3 FOR 2) or substr(cast(extract(year from date) as varchar(4)),3,2)   It's ODBC syntax (like MONTH() or LENGTH()) and the ODBC driver replaces it with the correct version, but only for SELECT, not for DDL. Dieter

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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