DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+1 =
Submit