SQL case when的使用实例
数据表:CaseWhen
ID | website1 | website2 | website3 | Name |
---|---|---|---|---|
1 | null | www.mozhenlong.com | www.mozhenlong.xin | mzl |
2 | www.baidu.com | www.mozhenlong.com | null | mzl1 |
3 | null | null | www.mozhenlong.xin | mzl |
4 | null | www.mozhenlong.com | null | mzl1 |
5 | www |