example i have this table order

here's my problem now if i post new records it automatically ad new rows but i want to hapen is
overwrite the last row if u see the image have a row of P_Id's 1 2 3 if i will post new record it looks like this

i hope u will help me for that