TRY_CONVERT and PARSENAME
Hello,
I do not have access to Vertica.com. My team is looking into this. So I have to use the forums.
Does anyone know the equivalent to TRY_CONVERT and PARSENAME in Vertica? They are SQL Server functions. Below is what I need to convert to Vertica.
select CONVERT(BIGINT, PARSENAME(IP_Address, 4))256256256 + CONVERT(BIGINT, PARSENAME(IP_Address,3))256256 +
CONVERT(BIGINT, PARSENAME(IP_Address,2))256 + CONVERT(BIGINT, PARSENAME(IP_Address,1))
from IP
Thank you all in advance.
0
Comments
For TRY_CONVERT, the "::!" construct should help:
For PARSENAME, maybe user SPLIT_PART?
Wow, perfect! Thanks Jim!
Wow, perfect! Thanks Jim!
Jim - you just saved me a huge headache. Thanks again.
Jim - you just saved me a huge headache. Thanks again.