十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
update S_DEPARTMENT t set t.full_name = 'XX集团' where fid='-1';
update (
select a.dep_name,a.full_name,b.dep_name dd,b.full_name cc from
(select * from S_DEPARTMENT where dep_level = '2') a , -- 获取二级菜单
(select * from S_DEPARTMENT where dep_level = '1') b -- 获取一级菜单
where a.fid = b.id
)
set full_name = cc||'/'||dep_name ;