如何解决创建了用于合并两个表branch_mstr和new_branches的过程仅具有两个字段和相同的主键
delimiter $$
create procedure mergeData()
begin
declare counter,rowws int default 0;
set rowws = (select count(*) from new_branches);
begin
while counter < rowws do
if new_branches.branch_no != branch_mstr.branch_no then
insert into branch_mstr value(new_branches.branch_no,new_branches.name);
end while;
end;
end$$
delimiter ;
Why these crosses are showing,I am using MySQL and new to the PL/SQL. Asking for the help
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。