shadowcaster Posted July 22, 2007 Share Posted July 22, 2007 Hi. I have a table with the structure: CREATE TABLE otherpayments ( `advert_id` INT(11) NOT NULL AUTO_INCREMENT, `cheque` INT(1) NOT NULL, `postalorder` INT(1) NOT NULL, `paypal` INT(1) NOT NULL, `other` INT(1) NOT NULL, PRIMARY KEY(`advertentie_id`) ); Is it possible to remove the AUTO_INCREMENT from the advert_id field and how would I go about doing that? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/61240-solved-removing-auto-increment-from-field/ Share on other sites More sharing options...
GingerRobot Posted July 22, 2007 Share Posted July 22, 2007 You can do it easily enough in phpMyAdmin. However, the query is: ALTER TABLE `otherpayments` CHANGE `advert_id` `advert_id` INT( 11 ) NOT NULL Link to comment https://forums.phpfreaks.com/topic/61240-solved-removing-auto-increment-from-field/#findComment-304823 Share on other sites More sharing options...
shadowcaster Posted July 24, 2007 Author Share Posted July 24, 2007 Thanks mate. Link to comment https://forums.phpfreaks.com/topic/61240-solved-removing-auto-increment-from-field/#findComment-306585 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.