简体   繁体   中英

How to write a escape sequence for “(” and “)” in java

I have a query where i am using

select   
concat(jo.title, "(" ,CCP.name,")"), 

for the result .My expected result is Java Developer(Morgan Stanley) this way .So how can i write it in java file .For now i am using

+" concat(jo.title ," + "\"(\""+",CCP.name )"+"\")\""+"\") ,"

I am doing this for right bracket ,but it is not coming ,please anybody help

您可以尝试“ concat(jo.title,” +“ \\”(\\“” +“,CCP.name),”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM