DROP TRIGGER IF EXISTS inserUserInfo;
DROP
TRIGGER
IF EXISTS inserUserInfo;
--红色为数据库名称,绿色为表名称--
create trigger inserUserInfo after insert on sql.studentfor each rowbegin insert into sql.user (name,pwd) values(NEW.姓名,substring(NEW.姓名,7,8));end