cancel
Showing results for 
Search instead for 
Did you mean: 

UDF to print the string with double quotes

Former Member
0 Kudos

Hi,

I was just trying to print the output as "ABC Pvt Ltd, GBG" (including double quotes) with help of udf but couldn't succeeded.

I can get the result just by concatenating the double quotes but I was wondering if it is possible with UDF too.

Regards,

Sarvesh

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

use \" in Java for a quote.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks to both of you! I was facing problem in printing the double quotes.

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi,

>

> I was just trying to print the output as "ABC Pvt Ltd, GBG" (including double quotes) with help of udf but couldn't succeeded.

>

> I can get the result just by concatenating the double quotes but I was wondering if it is possible with UDF too.

>

> Regards,

> Sarvesh

did you mean the sample code for UDF?

the easiest would be

String output = "\"" + input + "\"";

return output ;

Edited by: Shabarish Vijayakumar on Jun 2, 2010 6:07 PM