Java JDBC tutorial | Java Database Connectivity | Java Tutorial For Beginners | Simplilearn

Java JDBC tutorial | Java Database Connectivity | Java Tutorial For Beginners | Simplilearn

Simplilearn

3 года назад

306,531 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Aliyu Umar gumel
Aliyu Umar gumel - 04.08.2023 19:17

Good job! But sincerely speaking I didn't understand it.

Ответить
Afif Khaja
Afif Khaja - 05.04.2023 23:04

Great tutorial. 1. How do we hide the password? 2. Instead of hard-coding the number of columns, isn't there some variable (e.g. result.getNumColumns()) that will automatically get the number of columns from the resutset?

Ответить
Aaditya Jaiswal
Aaditya Jaiswal - 01.02.2023 12:25

thanks a lot sir.

Ответить
Itri G
Itri G - 25.07.2022 23:16

A lot of unnecessary animations, just go straight to the point, thank you anyway

Ответить
Some very cool Username
Some very cool Username - 11.04.2022 11:46

Finally, someone with pure English accent

Ответить
Arnab Saha
Arnab Saha - 17.02.2022 19:04

I am getting this exception

java.sql.SQLException: Access denied for user 'port'@'localhost' (using password: YES)

Can you tell me what is the issue?

Ответить
Abhishek Gupta
Abhishek Gupta - 11.01.2022 14:27

nice try on accent bro

Ответить
danous tn
danous tn - 05.01.2022 19:04

Salamou Alaykom Thank you So much

Ответить
Nima Safavi
Nima Safavi - 21.12.2021 17:07

I appreciate your useful video. Where can I find the code?

Ответить
Ishan Rastogi
Ishan Rastogi - 26.11.2021 13:49

It would have been a lot more helpful if you had zoomed in, can't see a single thing clearly,, specially since its light mode.

Ответить
P'KTHERX'TON'
P'KTHERX'TON' - 24.11.2021 04:45

/iload_1 ~ D=FGg(xy) returnsz f(xy fusion) + iaload ifne 16Aa'b'CB radii u 35deg /

Ответить
El Bozo
El Bozo - 13.10.2021 21:06

fr all the homies put throws SQLException even when it being caught in a try block

Ответить
Jacob Lazar
Jacob Lazar - 03.10.2021 01:43

Awesome tutorial for explaining the basics of integrating a MySQL locally hosted server into a java application. I do have a note however. You should be a little more specific in configuration of the connection and warn users that the username and password have to exactly match the SQL setup. or like to pause the video and write down their credentials for later use in the app because i could see some people getting lost there. I got mine up and running and was really excited to start adding custom entries on the SQL side just to run the java app and see that they would appear like magic. your breakdown of how each line of code is connected from driver>connection>statement was especially helpful, as was your reiteration that the query will be how you effectly "speak to" your database from the app. seriously thank you.

Ответить
rastaramen
rastaramen - 24.08.2021 15:44

Good tutorial, but I'm wondering why you didn't implement reading the data from the ResultSet using specific data types and an index value instead of a loop?

while (rset.next()) {
String universityData = "";

int pos = 0;
universityData += rset.getInt(++pos) + " ";
universityData += rset.getString(++pos) + " ";
universityData += rset.getString(++pos) + " ";
universityData += rset.getString(++pos) + " ";
universityData += rset.getInt(++pos) + " ";
universityData += rset.getInt(++pos) + " ";

System.out.println(universityData);
}

Is there a reason he didn't use this method?

Ответить
Alex
Alex - 09.06.2021 07:14

in the last query when you looked at the min for university rank, why did Kiran show up when Raju had the lowest? Also, you said 96 when it read 98??? I'm so confused now

Ответить
Sehrish Balouch
Sehrish Balouch - 26.05.2021 23:04

Thank you so so much for this helpful video. I love how you guys make everything simple and break it down

Ответить
Elisson Silva Santos
Elisson Silva Santos - 24.05.2021 21:50

Interesting

Ответить
ItzDiizy
ItzDiizy - 03.05.2021 07:47

gotta love when he gets an error and just cuts the video as if this isnt a tutorial

Ответить
Mike Headley
Mike Headley - 11.04.2021 05:37

Great vid thanks!

Ответить
thekids4488
thekids4488 - 10.04.2021 05:07

Do i need to create a connection every time I use a different method? I am trying to create a method to search the database and another method to update the database and im a little confused.

Ответить
Swan
Swan - 06.04.2021 20:24

Great Example thank you.

Ответить
Lab Rat
Lab Rat - 02.03.2021 10:18

Iam getting *terminated docsconnectionpropshelper * eror in every program. Please help

Ответить
Andy
Andy - 14.02.2021 02:07

on Mac OSX Workbench comes without MySql server, you got to install it separately.

Ответить
vivian mardikios
vivian mardikios - 10.02.2021 14:15

please can u tell me .........what is the difference between java file input/output and jdbc?

Ответить
Samriddhi Yashaswini
Samriddhi Yashaswini - 05.02.2021 22:33

Thank you for the great explanation. I had a question. If we can simply do the same actions from SQL directly, what is the need of using JDBC?

Ответить
Awesome Austin
Awesome Austin - 04.02.2021 15:45

This is exactly what I needed, awesome video

Ответить
Yashwanth Reddy Gowreddigari
Yashwanth Reddy Gowreddigari - 07.10.2020 15:49

AWESOME EXPALNATION THANK U SO MUCH

Ответить
PurelyDef Beats
PurelyDef Beats - 11.09.2020 06:25

There's a few things I wish you hadn't glossed over: Installing MySQL, setting up a server and being able to run it from the command line, ensuring it was compatible with java and the connector and so forth because they gave me a lot of headaches and weren't covered in the video. However, all the content from about 16 minutes up until the end of the video was explained well and helped me a lot with some questions I had about what was going on in the code. My only real question is how can I get the program to open the initial connection to the server? If I don't have it open and running on the command line, the connection gets rejected by jdbc

Ответить
CodingZone
CodingZone - 06.07.2020 23:32

Well explained!

Ответить