Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: concatenating with oracle output
pawan_test wrote:
> Hi All,
>
> i have a question regarding the oracle database.
> i have a table say table1
>
> select a,b,c from table1;
>
> i have d=10 and e=5
>
> i have to append the values of d and e to the output of the above query
>
> the ouput might look like; a b c 10 5
>
> can anyone please suggest me how do I do it in oracle
>
> thanks
> mark
>
concatenate operator in Oracle is ||
so, select a,b,c,d||e from table1; or select a,b,c||d||e from table1;, depending how you want it to look...
hth Received on Tue Nov 14 2006 - 10:03:29 CST
![]() |
![]() |