datetime - Update MySQL Column Timestamp -


i have query:

 select `listingdeadline` `listings` `listing_type_sid` = 6 , `active` = 1; 

running give me result of 183 results of column listingdeadline in following format:

2014-03-28 00:00:00 2014-03-30 00:00:00 

this column datetime type column users select date listing deadline , returns date , appends time stamp. default timestamp 00:00:00 i've changed 23:59:59. want update current listingdeadline timestamp results new value (23:59:59) 00:00:00 replaced 23:59:59 183 results.

any 1 idea of query can add 1 above this?

it seems question can interpreted altering query result. if so, try this. can used in update.

select `listingdeadline` - interval 1 second listingdeadline `listings` `listing_type_sid` = 6 , `active` = 1; 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -