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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -