Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql update all record removing 2 hours from column

UPDATE datetimes
SET datetime = DATE_ADD(datetime,
                        INTERVAL (15 - HOUR(datetime)) HOUR);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #update #record #removing #hours #column
ADD COMMENT
Topic
Name
3+1 =