用sql语句将两个值写到一列

一个表里面有两个地址,现在要把两个地址显示在一列adr里面,如果两个地址都存在,
这一列就显示这两个值,如果只有一个存在就只显示一个。该怎么写??求具体语句

SELECT CONCAT('1','2')

这个就是字段合并啊。

用的什么数据库,描述不是很清晰,最好截图列出表结构,

用case语句可以实现:

   select  case when adr1 is not null and adr2 is not null then concat(adr1,adr2) 地址 when adr1 is not null and adr2 is null then adr1 地址 when 
     adr1 is  null and adr2 is not null then adr2 地址 else ''  end from t;