摘要: 1、需求: (1)三张表A、B、C 三个表id相同,如果A表中的name在B表中的bname中显示aname值,否则显示空;如果C表中的addr在B表中的tel显示addr,否则显示空 2、实现方式 (1)用decode函数 效果图: (2)用case....when....实现 效果图: 阅读全文
posted @ 2016-11-23 17:01 李清欣 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 1、需求 create table ta(id int);create table tb(id int);insert into ta values(1);insert into ta values(2);insert into ta values(3);insert into tb values( 阅读全文
posted @ 2016-11-23 12:53 李清欣 阅读(5287) 评论(0) 推荐(0) 编辑