ludders Posted October 6, 2005 Share Posted October 6, 2005 Hi, I know that not having an id field is really stupid but when I first made the table I was fairly inexperienced. I was making a 'review system' for my website. I have used it for nearly a year now but I am starting to have problems. I need to add a field for the id of each review but there is already over 100 reviews on my site. How do I add an ID field into my table and find values for all the reviews so far? I hope you can help, Ludders Link to comment https://forums.phpfreaks.com/topic/2623-add-an-id-field/ Share on other sites More sharing options...
effigy Posted October 6, 2005 Share Posted October 6, 2005 backup your database. after that my first guess is to use the alter table command then try 'update table set id=null'; that may auto increment them. Link to comment https://forums.phpfreaks.com/topic/2623-add-an-id-field/#findComment-8701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.