Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!