国产探花免费观看_亚洲丰满少妇自慰呻吟_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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 江永县| 大城县| 布尔津县| 察雅县| 清镇市| 米泉市| 琼结县| 肥西县| 琼海市| 繁峙县| 安义县| 玉林市| 宕昌县| 裕民县| 库尔勒市| 嵊州市| 鹤岗市| 磐石市| 苍山县| 红桥区| 竹山县| 崇礼县| 秭归县| 库车县| 依兰县| 邻水| 郧西县| 桓台县| 抚顺县| 芦山县| 东明县| 横山县| 新乡市| 黎川县| 泸溪县| 海宁市| 大埔县| 大渡口区| 建湖县| 武穴市| 昌江|