Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はテーブルを持っています: テストと呼ばれるフィールド: id. id=1000 の更新時間 (例: 2 時間追加) が必要です。これを行う方法?
UPDATE test SET time = time + INTERVAL 2 HOUR WHERE id = 1000
使用ADDTIME():
ADDTIME()
UPDATE test SET time = ADDTIME(time, '02:00:00') WHERE id = 1000