sql case when
来源:互联网 发布:360域名检测 编辑:程序博客网 时间:2024/05/06 13:38
select t1.mainregion 运作地,
t1.customercode 客户编号,
t1.customernamecn 名称,
--t1.businesstype,
case when t1.businesstype = 'IMP' then '进口'
when t1.businesstype = 'EXP' then '出口'
when t1.businesstype = 'SAL' then '销售'
when t1.businesstype = 'TRS' then '物流'
end businesstype,
t1.createdate 创建时间,
e.name 商务经理,
'tel:' || e.telephone || ' mobile:' || e.mobilephone tel,
case when t1.islock = 'N' then '否'
when t1.islock = 'Y' then '是'
end islock
from eapt_customer t1, employee e
where (t1.warehouseftcout = 56
or t1.warehouseftcin = 56) and e.username = t1.principal2
t1.customercode 客户编号,
t1.customernamecn 名称,
--t1.businesstype,
case when t1.businesstype = 'IMP' then '进口'
when t1.businesstype = 'EXP' then '出口'
when t1.businesstype = 'SAL' then '销售'
when t1.businesstype = 'TRS' then '物流'
end businesstype,
t1.createdate 创建时间,
e.name 商务经理,
'tel:' || e.telephone || ' mobile:' || e.mobilephone tel,
case when t1.islock = 'N' then '否'
when t1.islock = 'Y' then '是'
end islock
from eapt_customer t1, employee e
where (t1.warehouseftcout = 56
or t1.warehouseftcin = 56) and e.username = t1.principal2
- sql case when
- SQL WHEN CASE
- SQL Case When
- Sql server Case when
- sql case when
- sql --case when then
- sql case when
- SQL CASE WHEN使用
- SQL:select case when
- SQL ----case when 用法
- sql 中case when
- SQL CASE WHEN使用
- SQL Case When
- SQL:Select Case When
- sql case when
- sql case when 使用
- sql case when
- SQL CASE WHEN
- delete删除行
- PHP 利用cookie做的投票程序
- Servlet
- 网易,网聚人的力量
- 推荐几个免费的国外图像库,数字图像处理必备
- sql case when
- 戴旭上校:民众国防意识淡漠危及复兴大业
- 如何子类化
- Sql server中的Cursor
- Blog开通纪念
- Oracle多粒度锁的验证
- 2..学生信息系统DOS
- hi
- winsocks协议FTP脚本不能回放解决办法