sno name regno 1 Jhon 3201 2 mark 3203 3 bell 3205 4 bean 3206
sno name regno 1 Jhon 2101 2 mark 2102 3 bell 2103 4 bean 2104
delimiter | CREATE TRIGGER testref BEFORE UPDATE ON test1 FOR EACH ROW BEGIN UPDATE test1 SET regno = regno + 1 WHERE regno > NEW.regno; END; | delimiter ;
update test1 set regno='2101' where sno='1'
sno name regno 1 Jhon 2101 2 mark 2102 3 bell 2102 4 bean 2102
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)