Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
JDBC and Relational Databases
A Question on JDBC URLs
Arthur Buliva
Ranch Hand
Posts: 101
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have seen some books write
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test?", "", ""); //Note the ?
while others write
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "", ""); // No ? Here
I was wondering which is better and why? What does the ? do?
Rob Spoor
Sheriff
Posts: 22862
132
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Moving to
JDBC
.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It (likely) doesn't do anything, if there aren't any parameters.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Close connection
SQLException
connection pooling
Changing Timeout
whats wrong here in connection string
More...