insert into tbl() select * from tb2中加入多个条件

biandunmkeng

biandunmkeng

2016-02-19 09:02

岁数大了,QQ也不闪了,微信也不响了,电话也不来了,但是图老师依旧坚持为大家推荐最精彩的内容,下面为大家精心准备的insert into tbl() select * from tb2中加入多个条件,希望大家看完后能赶快学习起来。
代码如下:

insert into warehouse(wlbm,wlmc,ys,wlgg,sybm,wlfl) select * from (select rtrim(b.bjbm) as bjbm,a.bjmc as wlmc, a.ys, a.clgg as wlgg,a.bm,
(case a.bm when '注塑' then 2
when '吹塑' then 43
when '搪胶' then 3
when '喷油' then 4
when '车梳' then 45
when '冲压' then 19
when '电焊' then 31
when '烤漆' then 37
when '裁床' then 38

when '丝印' then 46
when '车缝' then 39
when '装配' then 40
when '包装' then 42

end) as wlfl
FROM (select distinct(rtrim(bjbm)) as bjbm from dbo.CP_LB where bjbm'' and bjbm not in (select wlbm from warehouse)) b left JOIN dbo.CP_LB a
on rtrim(b.bjbm)=rtrim(a.bjbm)) c
展开更多 50%)
分享

猜你喜欢

insert into tbl() select * from tb2中加入多个条件

编程语言 网络编程
insert into tbl() select * from tb2中加入多个条件

在PPT中加入视频

电脑入门
在PPT中加入视频

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

select * from sp_who的解决方案

编程语言 网络编程
select * from sp_who的解决方案

JavaScript教程:网页中加入JavaScript

Web开发
JavaScript教程:网页中加入JavaScript

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

在Word文件中加入声音

办公软件
在Word文件中加入声音

Word2007中加入各种款式的分隔线

电脑入门
Word2007中加入各种款式的分隔线

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

Windows中安装Apache2和PHP4权威指南

Windows中安装Apache2和PHP4权威指南

C# 使用匿名函数解决EventHandler参数传递的难题

C# 使用匿名函数解决EventHandler参数传递的难题
下拉加载更多内容 ↓