我想做一个存储过程 运行后可以将选课系统的学生表中每个学生的密码 自动修改为学生的学号 求帮忙…
这是sql语句 update c_student set stu_password=stu_id
还有一种方法是用触发器 每添加一个人员自动把 stu_id 给 password
CREATE TRIGGER upPassWord
AFTER
INSERT ON c_student
FOR EACH ROW
update c_student set stu_password = new.stu_id where stu_id = new.stu_id;