This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

quotation marks problem of access db,SOS!

 
Tom Keaton
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use java to connect access db,the code appear like this:
It is no problem,but
is wrong,though the sql sentence can correctly execute by copying to access
[ March 25, 2004: Message edited by: tvbas ]
 
eammon bannon
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure I understand your question - what exactly are you worried about?
 
Tom Keaton
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

it wrong,why?
 
eammon bannon
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

it wrong,why?

C'mon tvbas - you're not giving us much to work with here. By "wrong" do you mean:
- your code doesn't compile?
- you get a SQLException when you run it?
- you get some other kind of Exception?
- you get unexpected results?
- you get no results?
- you are worried it might be incorrect SQL?
- you are worried it could be better designed?
[ March 25, 2004: Message edited by: eammon bannon ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"tvbas",
We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks!
bear
Forum Bartender
 
Tom Keaton
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my code.
java.sql.SQLException
 
Tom Keaton
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nobody can help me?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Tom K', thanks for changing your display name, but please read my response and the naming policy as your newly chosen name is still not valid.
bear
JDBC Forum Bartender
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

nobody can help me?

Did you read eammon's reply? We can't help you unless you help yourself by answering requests for more information about your problem.
 
Tom Keaton
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by tvbas:
this is my code.
java.sql.SQLException

I have putted my code,please click "this",it is hyperlink of my code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic