我有5张桌子连在一起。
SELECT FormTitle, FormSection ,SubSection, SectionItem
FROM Core.Form_Section_SubSection_Item_Rel c
INNER JOIN Core.FormSection_Lkup l
ON c.FormSectionID = l.FormSectionID JOIN Core.FormSubSection_Lkup s
ON c.SubSectionID = s.SubSectionID JOIN Core.SectionItem_Lkup i
ON c.SectionItemID = i.SectionItemID JOIN Core.Form_Lkup f
ON c.FormID = f.FormID
有没有办法使用ListView中的编辑在1个查询语句中更新FormTitle,FormSection,SubSection,SectionItem?
答案 0 :(得分:1)
您可以创建视图并添加而不是更新触发器。 进入触发器,为每个表运行单独的更新(使用插入的变量)