murrain Posted August 9, 2007 Share Posted August 9, 2007 I have a table that is already created but all the fields are set to NULL by default. How would I go about changing this with a mysql_query(), so that if only say 2 of 5 fields are given a value for a column the rest will fill with the default value? -Murrain Quote Link to comment https://forums.phpfreaks.com/topic/64037-using-update-to-give-a-table-default-values/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.