Logs l, Logs l1, Logs l2
l.Id = l1.Id + 1
l1.Id = l2.Id + 1
l.Num = l1.Num
l2.Num = l1.Num
i have wrote the same sql just like you.
but i think it's the right answer just to this question.
what if the condition is more than 5 or 10 time?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.