Problema com o campo data
Olá amigos, tenho um problema não muito comum aqui.
Minha query deveria se comportar de seguinte forma:
valor no banco: 5 15
situações que a query deve barrar
situação 1: 7 10
situação 2: 3 7
situação 3: 10 12
situação 4: 3 12
query:
SELECT ID
FROM gap_principal
WHERE
(
((CONCAT(execucao,' ',hora_execucao) BETWEEN '$req' AND '$term') = '1') OR
((CONCAT(data_ate,' ',hora_ate) BETWEEN '$req' AND '$term') = '1')
) AND
(aneis_envolvidos LIKE '%|$value_aneis|%' OR aneis_envolvidos LIKE '%|$value_aneis' OR aneis_envolvidos LIKE '$value_aneis|%') AND
DELETADO != 'S' AND
ID_STATUS_ATIVIDADE IN('6','5','7','3','1','2')
Subject
Views
Written By
Posted
Problema com o campo data
5720
August 27, 2008 07:58AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.