我试图理解以下查询: select count(distinct Name || '' || Surname) from PEOPLE; 双杠是什么意思?该查询的作用是什么?
select count(distinct Name || '' || Surname) from PEOPLE;
在MySQL中: select "aaaaa" || '' || "bbbbb";
select "aaaaa" || '' || "bbbbb";
+--------------------------+ | "aaaaa" || '' || "bbbbb" | +--------------------------+ | 0 | +--------------------------+
双杠是别称:
select 'hello' || ' ' || 'world' from dual;
产量
'hello world'