I have an application that works with a database (PHP + MySQL).
One of the columns in the database table is of type ENUM('VALUE1','VALUE2').
ENUM('VALUE1','VALUE2')
Is it safe to add VALUE3in ENUMwithout damaging the data in the table?
VALUE3
ENUM
if added to the end, it seems safe, see manual
"" ALTER , : .... ENUM SET . ( , .)
:
http://dev.mysql.com/doc/refman/5.1/en/alter-table.html
http://www.brandonsavage.net/why-you-should-replace-enum-with-something-else/
Source: https://habr.com/ru/post/1770106/More articles:Intercepting only void callbacks using AspectJ - aspectjHow to insert an "empty" string in a DataTable? - c #Array with unsigned module - c ++The -D option is incorrectly expanded from the g ++ command line - c ++How to programmatically exit pdb running in eval () or exec () without displaying output - pythonJSON.NET for .NETCF 2.0 - json.netmysql matches query - phpHorizontal and vertical alignment div - jqueryHow to link data coming from a dataset to a header in rdlc reports? - rdlcHow to create an ASP.NET website to search for MLS or IDX lists? - c #All Articles