在选择语句上插入

时间:2018-12-26 20:45:19

标签: mysql

我正在尝试在选择语句中插入...如果可能的话? mySQL

Insert into listeners (TotalSessionTime) = (SELECT TIMEDIFF(StopTime, StartTime) from listeners where ID = 48);

1 个答案:

答案 0 :(得分:1)

你很亲近

Insert into listeners (TotalSessionTime)
   SELECT TIMEDIFF(StopTime, StartTime) from listeners where ID = 48;