现在的位置: 首页 > 综合 > 正文

SQL 将查询出的表当做 value 插入到表中

2013年05月13日 ⁄ 综合 ⁄ 共 173字 ⁄ 字号 评论关闭
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 

抱歉!评论已关闭.