upgrade.sql updated

parent 35915b91
Showing with 5 additions and 5 deletions
...@@ -80,9 +80,9 @@ BEGIN ...@@ -80,9 +80,9 @@ BEGIN
FETCH off_cur INTO id_off_actual,name_sup,id_admin; FETCH off_cur INTO id_off_actual,name_sup,id_admin;
SELECT concat(id_off_actual, ' ', name_sup, ' ', id_admin); -- SELECT concat(id_off_actual, ' ', name_sup, ' ', id_admin);
SELECT * from stu_sup where id_sup = 105; -- SELECT * from stu_sup where id_sup = 105;
IF done THEN IF done THEN
LEAVE read_loop; LEAVE read_loop;
...@@ -91,15 +91,15 @@ BEGIN ...@@ -91,15 +91,15 @@ BEGIN
UPDATE supervisor SET name = name_sup, surname = '',role = 'office' UPDATE supervisor SET name = name_sup, surname = '',role = 'office'
WHERE id = id_admin; WHERE id = id_admin;
SELECT * from stu_sup where id_sup = 105; -- SELECT * from stu_sup where id_sup = 105;
UPDATE supervisor SET id_off = id_admin WHERE id_off = id_off_actual; UPDATE supervisor SET id_off = id_admin WHERE id_off = id_off_actual;
SELECT * from stu_sup where id_sup = 105; -- SELECT * from stu_sup where id_sup = 105;
UPDATE student SET id_off = id_admin WHERE id_off = id_off_actual; UPDATE student SET id_off = id_admin WHERE id_off = id_off_actual;
SELECT * from stu_sup where id_sup = 105; -- SELECT * from stu_sup where id_sup = 105;
END LOOP; END LOOP;
CLOSE off_cur; CLOSE off_cur;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment