Jump to content

mysql insert help


c_pattle

Recommended Posts

I have a table in my database with a long list of products, all of which have an id number which is the primary key and auto increments.  When I insert a new product into the table it adds it at the end of the table.  Is there a way I can insert it at the front of the table and it will move all the other products down and increase their id by 1?

Link to comment
https://forums.phpfreaks.com/topic/205411-mysql-insert-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.