在sql server中使用create trigger insert_stu on stufor insertasinsert into user(Uname,Upassword)select sid,sid from inserted在oracle中使用,默认密码为学生ID号create trigger in_sert on stufor insertasinsert into user(Uname,Upassword) values (NEW:Sid,NEW:Sid)是否可以解决您的问题?