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

Teradata equivalent function to FROM_TZ in Oracle - response (6) by ulrich

$
0
0
REPLACE FUNCTION mydb.FROM_TZ (ts_str char(19),tz_str char(6) )
  RETURNS timestamp(0) with time zone
  SPECIFIC mydb.FROM_TZ
  RETURNS NULL ON NULL INPUT
  LANGUAGE SQL
  CONTAINS SQL
  DETERMINISTIC
  SQL SECURITY DEFINER
  COLLATION INVOKER INLINE TYPE 1
 RETURN 
 CAST((ts_str||tz_str) as timestamp(0) with time zone);

select mydb.FROM_TZ(casT('2012-12-12 23:26:20' as char(19)),cast('-03:00' as char(6)))

 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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