Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

I want to enclose the sql query out with open and close brackets [ 1,2,3 ]

User_N2CZ9Jan 26 2021

Hi,

I'm trying to generate a SQL query output with open and close bracket need to provide this output for a req.

Now I'm using the following query to achieve this.

select '[' from dual
union all
select account_numbr from table
union all
select ']' from dual

out put:
[1,2,34,56]

Do you have any function to achieve this to get the out put with open and close brackets?

I appreciate your inputs on this.

Thanks,
Kumar

Comments
Post Details
Added on Jan 26 2021
6 comments
2,551 views