insert into Print (printChannelStyleId,TemplateResourceID,CreateDate)
select a.id, b.id,getdate() from PrintStyle as a,Template as b where a.catalogId in (27,28,29)
and b.BindType=a.styleCode
转载于:https://www.cnblogs.com/henw/archive/2011/04/14/2015740.html