MySQLã§Datetimeåã«ã©ã ã«è¨é²ãããæ¥æãUPDATEæã§å¤æ´ããæ¹æ³ã«ã¤ãã¦ã®è§£èª¬ã§ãã ã«ã©ã ã«â2013-07-01 00:00:00â³ã¨è¨é²ããã¦ããã¨ãã¾ããããã1æéåã«ä¿®æ£ããå ´åã¯ä»¥ä¸ã®SQLæãå®è¡ãã¾ãã UPDATE table_name SET 'target_column' = (`target_column` - INTERVAL 1 HOUR); ããã§ãå ¨ã¦ã®target_columnã«è¨é²ããã¦ããæéãã1æéåã«å¤æ´ããã¾ããä¸è¨ã®ä¾ã§ã¯â2013-07-01 00:00:00â³ã¯â2013-06-30 23:00:00â³ã«å¤æ´ããã¾ãã1æéå¾ã«å¤æ´ããå ´åã¯(`target_column` - INTERVAL 1 HOUR)ã®-ã+ã«å¤ãã¾ãã 以ä¸ã¯æé以å¤ã®ãç§åä½ãæ¥åä½ã®æéå¤æ´ã«ã¤ãã¦ã®ä¾ã§ãã UPDATE table_
{{#tags}}- {{label}}
{{/tags}}