Concat Results of 2 Select Queries into 1 Column (oracle) -
im trying insert record table. there 1 column in want concatenated results of 2 select statements. 2 statements fetch records , concatenate form 1 value can inserted column.
insert abc (name,city,age) values ('john',( (select city tablea id=1)concat(select city tablea id=2)),'22')
or can comma separated not getting use here.
try one:
insert abc (name, city, age) values ('john', ( (select city tablea id = 1) || (select city tablea id = 2) ), '22');
but ensure ... id = 1 , ....where id = 2 return 1 row.
Comments
Post a Comment