aspose file tools*
The moose likes Cattle Drive and the fly likes jdbc and apostrophes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "jdbc and apostrophes " Watch "jdbc and apostrophes " New topic
Author

jdbc and apostrophes

Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
For the jdbc assignments is it considered overkill to deal with titles, stars or descriptions with ' in the text? For example, a title like My Best Friend's Dog or a star like Rosie O'Donnell breaks the SQL. Should those ' be escaped first or does one KISS it off?


Thanks,
Pauline
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
I think it is a good thing if your code can handle that situation, but it's not required to pass the assignment.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc and apostrophes