4
I have a massive database, has more than 2,000 lines, and the second column has an ENUM that allows only 'Option 1' and 'Option 2'. If I insert 200 lines into the table and write the wrong ENUM name as an example insert into tabela values ('blabla', 'Ocao 2')
he had returned an empty area in the ENUM field and this would lead to a huge headache. Is there any way in SQL I prevent this from happening, such as a check structure, preventing me from running the code?
I’ll take a look Vinicius, thanks for the reply, I’ll see how this Rigger works and later I’ll give you the feedback
– Iago Coutinho Campos
I decided not to use the ENUM anymore, there are many people presenting several negative points... But you answered my question, vlw!
– Iago Coutinho Campos