2017-03-13 8 views
2

IBM Informix에서이 MySQL 문을 어떻게 수행합니까?Informix datetime : 15 분을 공제하는 방법

select type, channel, teilnr, starttime, endtime, usedtime, host 
from online_time 
where starttime < DATE_SUB(NOW(),INTERVAL 15 MINUTE) 
order by starttime desc 

나는 Informix에서 이것을 시도했지만 구문 오류가 발생했습니다.

select type, channel, teilnr, starttime, endtime, usedtime, host 
from online_time 
where starttime < subdate(CURRENT, INTERVAL "15" MINUTES) 
order by starttime desc 
+0

크로스 사이트 중복 : http://dba.stackexchange.com/questions/167017/informix-older-than-15-minutes/167043#167043 –

답변

3
select type, channel, teilnr, starttime, endtime, usedtime, host 
from online_time 
where starttime > (CURRENT - 15 UNITS MINUTE) 
order by starttime desc