I'm desperately trying to make the database replace the 0 with 1 every time I insert it in a table field. I have this field called Stazione, in which there is "numerodibinari", and I don't want it to be zero. I've tried like this.
Create trigger gestionebinari
Before insert on stazione
for each row
Begin
If (new.'numero di binari'=0)
then
Set (new.'numero di binari'=1);
but it still doesn't work. What can I do?