1、去最新插入表数据与当前时间差额
select *,(TIME_TO_SEC(SYSDATE())-TIME_TO_SEC(t.cre_time)) from t_sms_flow t where t.cre_time =(select max(cre_time) from t_sms_flow);
1、去最新插入表数据与当前时间差额
select *,(TIME_TO_SEC(SYSDATE())-TIME_TO_SEC(t.cre_time)) from t_sms_flow t where t.cre_time =(select max(cre_time) from t_sms_flow);