MySQL query not deleting rows using datetime -


hi trying delete rows in mysql dates equal start , end date. problem when run query:

delete taddmapp.sensorsummaryall startdate = '2017-07-14t03:01:42-04:00' , enddate = '2017-07-14t19:10:36-04:00'; 

i error saying "error code: 1292. incorrect datetime value: '2017-07-14t03:01:42-04:00' column 'startdate' @ row 1".

the thing when run select query:

select * taddmapp.sensorsummaryall startdate = '2017-07-14t03:01:42-04:00' , enddate = '2017-07-14t19:10:36-04:00'; 

with same dates start , end returns me rows have start , end date equal. can explain why select works delete gives me error? thank in advance time , effort.


Comments

Popular posts from this blog

javascript - Replicate keyboard event with html button -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Web audio api 5.1 surround example not working in firefox -