Select em Timestamp

2 respostas
N

Estou querendo fazer um select

select * from floattable f
where f.DateAndTime

DateAndTime                        millitm      tagindex       val        status      marker

2008-07-02 11:37:19.0 193 1 0.0 U B

A caluna DateAndTIme é timestamp

eu faço assim

select * from floattable f
where f.DateAndTime =2008-07-02 11:37:19

nao da certo! ja tentei de tudo com ’ ’ sem entre parenteses!

No IREPORT tb! faço igual e da erro!
Aguardo!

2 Respostas

M

ta usando oracle? Se sim tenta usar a função TO_DATE dele.

N

Melhorando minha pergunta
o banco é ACESS
Dateandtime é TIMESTAMP

quando tento fazer um
select * from floattable where DateAndTime =‘02/07/2008 11:31:23’ --> DA ERRO
select * from floattable where DateAndTime =(‘02/07/2008 11:31:23’) --> DA ERRO
select * from floattable where DateAndTime = to_date(‘02/07/2008 11:31:23’, DD/MM/YYYY RR:MM:SS) --> DA ERRO

oque ponho nesse select para funcionar

Criado 9 de julho de 2008
Ultima resposta 9 de jul. de 2008
Respostas 2
Participantes 2