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

Please explain the different behavious of substr - forum topic by barani_sachin

$
0
0

Please explain how this wotks.
SEL SUBSTR(CAST(12345 AS VARCHAR(5)),1,3)
This gives "123" as OP
whereas
SEL SUBSTR(12345,1,3)
gives only "12", why does when passing integer/number it always reduces one explictly and gives output?

Forums: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles