I have tried to set the max
value for the particular column but that is not working for me. I do not know where i'm going wrong.
UPDATE `upload_video`
SET order_id ='select max(order_id)+1
FROM upload_video'
WHERE `video_id` = 22
This is my query i run the select max(order_id)+1 from upload_video
query separately which is giving the result. But if i use this query in update query, the query is executing without error. But the order_id
is not updating properly. please help me