mysql 触发器 字段,MySQL触发器将字段更新为id的值
I would like to have a trigger to perform following operation for inserted records:# pseudocodeif new.group_id is nullset new.group_id = new.idelse# don't touch itendMore clearly: say I have one table...