国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > SQL Server > 正文

insert into tbl() select * from tb2中加入多個條件

2024-08-31 00:59:39
字體:
來源:轉載
供稿:網友

復制代碼 代碼如下:


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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 衡南县| 阳城县| 铜鼓县| 许昌县| 宁明县| 龙口市| 彭泽县| 绥江县| 永靖县| 噶尔县| 商河县| 天气| 舟山市| 筠连县| 仪征市| 合水县| 高淳县| 广水市| 延川县| 黄骅市| 巴里| 禹城市| 永泰县| 开鲁县| 鸡泽县| 霍城县| 宁明县| 寻乌县| 襄汾县| 岑巩县| 开化县| 琼结县| 泰和县| 威信县| 稻城县| 白水县| 英山县| 新宁县| 信阳市| 沂源县| 垣曲县|