• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A Full JDBC example problem which takes some input from user and saves that into database

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here I have tried a lot to explain you by sharing my knowledge

Check the blog below to learn a lot deeper about JDBC and its connectivity

Full JDBC example which you must know

In this blog I have included the way to check whether a particular user is available in the database if incase the user is not there then some error messages can be displayed

Staff note (Ron McLeod) :

Note: As posted below, if you are trying to learn from this site and want to try the example code on your own, the site owner expects payment for a text version of the code.

 
Rancher
Posts: 326
14
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Class.forName() - if you have to rely on a driver that has to rely on loading that old way - you should change the database backend which provides a more modern jdbc4.x driver which auto-loads via ServiceLoader api and hence no Class.forName() is needed anymore.
Also: Why that heavy focus on orcale? Most who use an oracle database should know what they're doing - and surely don'T need your blod post. What about the way more common MySQL/MariaDB used by your target audience?
Overall this should be moved over to the blatant advertising section - it doesn't really fit where you think.
 
Marshal
Posts: 4501
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anush Gm wrote:Check the blog below to learn a lot deeper about JDBC and its connectivity


Why are all the code examples presented as images rather than text  
 
Anush Gm
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried to explain what I learnt in JDBC. This content is not available in google as well. So if you want you can make use of it or else just leave it.

If you want your coded you can pay some amount and I will give you the codes as a text file or in whichever format you need.
 
Ron McLeod
Marshal
Posts: 4501
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anush Gm wrote:If you want your coded you can pay some amount and I will give you the codes


That's not really keeping with the spirit of this site.  No one here asks to get paid for their time or effort, we all just do our best to help and don't expect to receive anything in return (although a thumbs-up or thank-you is always appreciated).
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic