How does MySQL handle storing ENUM value that doesn't exist? -
for example suppose enum "a", "b", "c" , try store "d" how mysql supposed behave? design perspective there correct way of handling case? (your program receives "d" fo above enum)
if using strict mode error occur otherwise store empty string value of zero.
the correct way handle case ensure invalid values never inserted or use data type.
Comments
Post a Comment