• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get a String contain ""?  RSS feed

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i get a String like "select * from "tab""
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To include a double quote inside a String, use the escape sequence for the double quote; i.e. wherever you want a double quote to appear, use a backslash/quote pair like this: \"
Try it out with this:

Here are some other escape sequences you may need in the future:
Backslash \\
Backspace \b
Carriage return \r
Form feed \f
Horizontal tab \t
New line \n
Octal character \DDD
Single quote \'
Unicode character \uHHHH
[ April 20, 2002: Message edited by: Jack Frosch ]
 
guo mark
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
solved it .thans alot
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!