Mysql statement is as follows:
The UPDATE table_A SET
Time field field C + C=time (the time field - time field B)
WHERE the state=1
Is there any way to achieve this SQL?
Pray god give directions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
CodePudding user response:
If the time field. A, B and C belong to the same data, then use DATEADD (time field C, INTERVAL DATEDIFF (time fields A, time field A, 3) DAY try,
CodePudding user response: