Ads Posted June 20, 2010 Share Posted June 20, 2010 Is there a way to Reset a Database Field to its defualt value, using php? I want to be able to do this without Manually setting the number I want to field to update to? Link to comment https://forums.phpfreaks.com/topic/205299-reset-databse-fields/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 20, 2010 Share Posted June 20, 2010 Use the DEFAULT keyword - UPDATE table_reference SET col_name1=DEFAULT WHERE where_condition Link to comment https://forums.phpfreaks.com/topic/205299-reset-databse-fields/#findComment-1074527 Share on other sites More sharing options...
Ads Posted June 20, 2010 Author Share Posted June 20, 2010 Worked Perfectly, Thanks Link to comment https://forums.phpfreaks.com/topic/205299-reset-databse-fields/#findComment-1074535 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.