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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -