upgrade.sql updated

parent 35915b91
Showing with 5 additions and 5 deletions
......@@ -80,9 +80,9 @@ BEGIN
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
LEAVE read_loop;
......@@ -91,15 +91,15 @@ BEGIN
UPDATE supervisor SET name = name_sup, surname = '',role = 'office'
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;
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;
SELECT * from stu_sup where id_sup = 105;
-- SELECT * from stu_sup where id_sup = 105;
END LOOP;
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