Answer the question
In order to leave comments, you need to log in
How to create a trigger that does not allow adding / deleting / changing under certain conditions?
Something I'm just not trying to find, but I want to find a solution as soon as possible, I'll just leave this question here, maybe someone will answer
Answer the question
In order to leave comments, you need to log in
create trigger <trigger_name> before insert on <table_name>
for each row
begin
if new.val = '' then
signal sqlstate '45000';
end if;
end;$$
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question