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

Using Length Function ... - response (2) by dnoeth

$
0
0
LENGTH is not part of Teradata SQL syntax, it's ODBC syntax. In your case the ODBC driver replaced it with valid Teradata syntax (probably CHAR_LENGTH) before submitting it. CLI/JDBC/.NET don't do this translation, so this query fails. It will also fail when you try to use it in a CREATE VIEW or CREATE TABLE AS in SQLA. In the ODBC manual there's a list of those ODBC Scalar Functions, but it's not recommended to use them for the reason you encountered. You can switch off the translation by checking the "Disable Parsing" ODBC option. In TD14 there's a built-in function LENGTH and in TD13.10 you could easily create a SQL UDF doing the translation. Dieter

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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