I have a table like:
id | link
---------
1 | abc
2 | asd
and link column should contain id, example: 1-abc
. id is autoincreament.
I have this sql:
insert into table(link) values('abc');
should I update back the table, or is there a solution to do it in one query?