I have a table with three columns:
id,
name:string,
location:int
I need to copy all records with location = 14 to the same table, but I need the copies to change locations to 15. Of course, id's must be changed too, to their autoincrement values.
How do I do that in PostgreSQL?