可以使用以下命令创建具有一列一行的表:
select 'create' as col from dual;
这可用于构建表连接:
with
a as (select 'create' as ac from dual),
b as (select 'delete' as bc from dual)
select * from a left outer join b on (ac = bc);
现在我想要两行。我是这样做的:
select 'create' as col from dual
union
select 'delete' as col from dual;
但是有没有更紧凑的符号呢?我试过
select ('create', 'delete') as col from dual;
但它不起作用。