Teradata 日期函数


select to_month_end(date)
select extract(year/month/day from date)
select lastday(date/timestamp)
select (date-date) day(3)/month(3)/year(3)
select months_between(date,date)
select (time-time) hour(3)/minute(3)/second(3)
select current_timestamp - interval '2' hour/mibute/second
select current_date - interval '2' year/month/day/hour/minute/second
select next_day(date,'friday'/'fri')
select numtoyminterval(20,'month'/'year')

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM