如何将下面列出的hive查询转换为oracle sql?我复制了我转换的查询"编辑"部分。它们是否正确?
查询1
date_sub(from_unixtime(unix_timestamp('20180515','yyyyMMdd')),1)
查询2
concat(substring(min(cretn_dt),1,10),"T",substring(from_unixtime(
unix_timestamp(min(cretn_dt),'yyyy-MM-dd hh:mm:ss aa'),'yyyy-MM-dd HH:mm:ss'),12,20),"Z")
修改
将查询1转换为以下内容:
select to_date('20180515','yyyyMMdd') - 1 from dual;
将查询2转换为以下内容:
select to_char(min(cretn_dt),'YYYY-MM-DD"T"HH:mi:ss') from dual;