I have following table named oder in mysql database
id user_id item_id
1 55 5813
2 55 359
3 56 559
4 62 4536
5 62 484
6 99 4698
7 29 435
In this table "id" is primary key and auto increment on this column is on. Now I want to add a column, it should also be auto incremented and value are like OD-001 , OD-002. Then my table should look like
id user_id item_id order_custom_id
1 55 5813 OD-001
2 55 359 OD-002
3 56 559 OD-003
4 62 4536 OD-004
5 62 484 0D-005
6 99 4698 OD-006
7 29 435 OD-007
Note: I am currently working on the PHP Laravel framework. I have go through many questions and articles but nothing worked out for me,