工作中常用sql函数
工作中常用sql函数
取整:
select floor(720332134397149184/10000%16);
将时间转为时间戳
select unix_timestamp(‘2020-04-09’);
将时间戳的列转为时间做为表的一列:
select from_unixtime(plan_repay_date),t.plan_repay_date as bb,t.* from hfax_ldp.tb_repay_plan_02 t where loan_id=‘726802646817144832’;
原创
2020-06-28 16:04:02 ·
129 阅读 ·
0 评论