Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get a String contain ""?

 
guo mark
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""
 
Jack J. Jackson
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic