How to Handle this issue in mysql primary key Insertion?

I Will try your approach and later will update my post