The definition of the intento
table is:
create table INTENTO
(
ID_INTENTO int not null auto_increment,
ID_U int,
ESTADO varchar(50) not null,
FECHA datetime not null,
primary key (ID_INTENTO)
);
Testing the query:
SELECT i.'ID_INTENTO', i.'FECHA' from intento i
Return me:
So far so good. Now what I'm trying to do is make another query that depends on a specific date and get the id_intento
and fecha
of the table intento
:
SELECT i.'ID_INTENTO', i.'FECHA'
from intento i where i.'FECHA'='30/01/2017 02:39:07 a.m.'
Does not return any results.
What am I doing wrong? Why is it empty if that date exists? (see the image).