时间:2021-07-01 10:21:17 帮助过:31人阅读
DECLARE userid WEB_SITE.USERID%TYPE;id WEB_SITE.ID%TYPE;CURSOR site IS select id,userid from web_site;beginOPEN site;
DECLARE
userid WEB_SITE.USERID%TYPE;
id WEB_SITE.ID%TYPE;
CURSOR site IS select id,userid from web_site;
begin
OPEN site;
LOOP
fetch site into id,userid;
EXIT WHEN site%NOTFOUND;
INSERT INTO web_model (id,userId,siteId,name,type,codeHeadLeft,
codeHeadRight,code,codeEdit,codeWeb,model,bgColor,style)
values(id+1,userid,id,'搜索','网站默认','','','','搜索结果列表',
'