私のクエリは次のようなものです:
concatenate(
(select col1 from table1) , ( select col1.substr(1,<tillENd>) )
)
両方の副選択が 1 つの行と 1 つの列を返す場合、これは正常に機能します。私の場合、どちらも複数の行を提供しますが、列は 1 つです。
それらを行ごとに連結したい。これどうやってするの?
更新: 完全なクエリは次のようなものです。
クエリ 1:
select col3
from tabl2
where col2 in (select substr(A,1,instr(A,'_',-1)-1)
from ( select substr(col1,1,instr(col1,'/')-1) as A
from ( select col1 from tabl1 )
)
)
2 番目の選択クエリ:
select substr(col1,instr(col1,'/')) as A1
from ( select col1
from tabl1 )