0
How can i work java with database ?
i have a project submitte with java so i need To know How am going To work with database link https://code.sololearn.com/WavX1iu7PNte/?ref=app
2 ответов
+ 5
Check this link and don't share others code with your questions.
https://www.javatpoint.com/example-to-connect-to-the-mysql-database
https://www.tutorialspoint.com/jdbc/jdbc-sample-code.htm
+ 1
There is some driver installation process to begin with.
Once you do that then you have to extract that file in your current working directory or the project file you are working on.
After that there are some 4 to 5 lines of code to establish communication between your data base and the java program.
1) Connection
2) Statement
3) Result set
4) Query to be executed.