How to reset MySQL field to default value

1143020 pts.
Tags:
MySQL
Does anyone know if there's a MySQL command that would reset a field to its default value? Basically, I don't want to write my default value several times in code in the database. Thanks!
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thanks for coming to ITKE. I did a web search of your question and found many sites that have information that would assist you. Here is a link to one of them:

https://bytes.com/topic/mysql/answers/75456-easy-way-reset-data-whole-columns-default-value

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: