2
I have the following SQL:
select * from tb_valores
where
DATA >= '14/12/17' and
HORA >= '16:34:00')
I would like to bring all records from that date and time.
The problem is that if I have records like:
'14/12/17' '10:20:00'
'14/12/17' '13:20:00'
'14/12/17' '16:32:00'
'18/12/17' '08:00:00'
he doesn’t bring these records.
So it doesn’t work? select * from tb_values Where (DATA >= '14/12/17') and ( TIME >= '16:34:00')
– Jovani
All listed records are less than "16:34:00", so it’s not bringing results. The other error is with SQL syntax.
– Valdeir Psr
In your table this field DATA is a
Date
? and that field Hour and aTime
?– novic
If possible add the structure of your table and the type of data that are these fields, if you want to catch the time is simple, just take the date, it was not very clear to me
– arllondias