我有以下查询
select tb2.customer_no, tb2.last_name, tb2.first_name
from ccare.customer tb2
where tb2.customer_no = '1000647'
输出
customer_no First name Last name
1000647 George Roberts
如何将名字和姓氏组合在一列中。期望的输出将是
customer_no Name
100064 George Roberts
答案 0 :(得分:2)
非常简单。这应该做到。
select tb2.customer_no, tb2.last_name || ' ' || tb2.first_name name
from ccare.customer tb2
where tb2.customer_no = '1000647'