16.2 Java Database Connectivity Practical

Поделиться
HTML-код
  • Опубликовано: 20 июл 2024
  • Check out our courses:
    Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
    Coupon: TELUSKO20 (20% Discount)
    Master Java Spring Development : bit.ly/java-spring-cloud
    Coupon: TELUSKO20 (20% Discount)
    Udemy Courses:
    Java:- bit.ly/JavaUdemyTelusko
    Java Spring:- bit.ly/SpringUdemyTelusko
    Java For Programmers:- bit.ly/javaProgrammers
    Python : bit.ly/pythonUdemySummer
    Git : bit.ly/Git-Telusko
    Docker : bit.ly/docker_udemy
    For More Queries WhatsApp or Call on : +919008963671
    website : courses.telusko.com/
    Instagram : / navinreddyofficial
    Linkedin : / navinreddy20
    TELUSKO Android App : bit.ly/TeluskoApp
    this video tells about steps to follow for connecting java program to mysql database.
    Java JDBC is a java API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database.
    7 Steps to Connect Application to database
    1)Import the package
    2)Load and Register driver
    3)Create Connection
    4)Create Statement
    5)Execute the query
    6)process the results
    7)close connection
    Editing Monitors :
    amzn.to/2RfKWgL
    amzn.to/2Q665JW
    amzn.to/2OUP21a.
    Editing Laptop :
    ASUS ROG Strix - (new version) amzn.to/2RhumwO
    Camera : amzn.to/2OR56AV
    lens : amzn.to/2JihtQo
    Mics
    amzn.to/2RlIe9F
    amzn.to/2yDkx5F
    Java:- bit.ly/JavaUdemyTelusko
    Spring:- bit.ly/SpringUdemyTelusko
    More Learning :
    Java :- bit.ly/3x6rr0N
    Python :- bit.ly/3GRc7JX
    Django :- bit.ly/3MmoJK6
    JavaScript :- bit.ly/3tiAlHo
    Node JS :- bit.ly/3GT4liq
    Rest Api :-bit.ly/3MjhZwt
    Servlet :- bit.ly/3Q7eA7k
    Spring Framework :- bit.ly/3xi7buh
    Design Patterns in Java :- bit.ly/3MocXiq
    Docker :- bit.ly/3xjWzLA
    Blockchain Tutorial :- bit.ly/3NSbOkc
    Corda Tutorial:- bit.ly/3thbUKa
    Hyperledger Fabric :- bit.ly/38RZCRB
    NoSQL Tutorial :- bit.ly/3aJpRuc
    Mysql Tutorial :- bit.ly/3thpr4L
    Data Structures using Java :- bit.ly/3MuJa7S
    Git Tutorial :- bit.ly/3NXyCPu
    Donation:
    PayPal Id : navinreddy20
    www.telusko.com

Комментарии • 530

  • @arifkhan-uw6tc
    @arifkhan-uw6tc Год назад +73

    this is 6 year old video and still most of developers are learning from this video.. that's what quality of teaching ...thank you navin sir.

  • @simplewireless3719
    @simplewireless3719 5 лет назад +205

    Better than My Professor at my college.

    • @karanshukla6889
      @karanshukla6889 4 года назад +9

      @@sagargupta341 Respect is not a gift that should be given for free, it should be earned. if his professors aren't doing their intended task then he isn't obliged to respect them.

    • @karanshukla6889
      @karanshukla6889 4 года назад +1

      @@sagargupta341 it does, you aren't obliged to respect them if they haven't earned. I am tired of explaining this baseless arguement to many "I am entitled" people.

    • @VinaySharma-zu8ru
      @VinaySharma-zu8ru 4 года назад

      My too

    • @VinaySharma-zu8ru
      @VinaySharma-zu8ru 4 года назад

      @Suraj Kamble pune mere wale attitude khatarnak

    • @mohitsingh-ic3co
      @mohitsingh-ic3co 4 года назад

      @@sagargupta341 u r right and little bit wrong too.....giving respect is a quality but there are other qualities too we should use them 🤣😂

  • @ajaydebata1167
    @ajaydebata1167 5 лет назад +77

    Thanks you Telusko sir , your way of teaching is very understandable , thank you again for sharing your knowledge to millions of people , God Bless you , keep doing it .

  • @carvelbell181
    @carvelbell181 5 лет назад +8

    Telusko, your tutorials are excellent. Thanks, I appreciated your videos.

  • @manikanta-sr3zc
    @manikanta-sr3zc 5 лет назад +6

    complex topics are made easy by Naveen sir and I love your way of explanation sir tq

  • @vigneshwarraju2437
    @vigneshwarraju2437 3 года назад +5

    Great tutor!You are so clear in what you are teaching and make the concepts easy to understand.Thank you Navin!

  • @suhailione6873
    @suhailione6873 3 года назад +7

    Sir you deserve more views and sunscribers
    You are definitely one of the best teacher in the world
    simple, effective and free of cost
    May God bless you everywhere
    Love you from the core of my heart 💓

  • @sarthakjoshi3797
    @sarthakjoshi3797 4 года назад +21

    MAN... the satisfaction when the correct result is printed on your console :)

  • @priyadharshinis8617
    @priyadharshinis8617 2 года назад +1

    Very clear explanation
    Every one easily understood for the JDBC tutorial
    Great anna 👏👏keep it up way for more and more videos

  • @axeduniverse2366
    @axeduniverse2366 5 лет назад +2

    This will help me alot for a School project i am working on thanks... and keep up the good work

  • @rupalipawar5688
    @rupalipawar5688 Год назад +5

    Thank You So Much Navin Sir. In my batch maximum students are tensed just coz of Advance Java . But to be honest I wasn't as my Trainer is also their who is dedicatedly trying his best. The Main Reason I Was Relaxed JUST BECAUSE OF YOU SIR. Feeling so COOOOOOOOOL.

  • @AnirudhSharma9211
    @AnirudhSharma9211 3 года назад +16

    10:58 The table named gariblog, extremely relatable!

  • @apoorvjaiswal9385
    @apoorvjaiswal9385 3 года назад +2

    i hopefully guessed the error before 18:55 . Your teaching style is awesome sir!!

  • @satyabatigoswami1735
    @satyabatigoswami1735 6 месяцев назад +1

    Thank you sir!! One of the greatest teachers ! Because of you only people from non CS background also can learn such difficult topics so easily! Your videos guide me in each and every step throughout my career. 🙏🙏

  • @abhijeetraj7952
    @abhijeetraj7952 5 лет назад +7

    Steve Jobs!
    to let u know i watched it complete

  • @MovinduLochana
    @MovinduLochana 4 года назад +3

    Thank you sir, I already worked with JDBC but I wanted to watch you video, cause I know there's something to learn from your video that others don't teach

  • @DeathBender
    @DeathBender 5 лет назад +6

    Well thanks for all the vids so far i've learned alot especially since i had to look up alot for myself but that's fine since this is how it should be ! Oh and the very first person who found an Apple waaaaas EVA in the garden of Eden ;) !!!!

  • @Nikkudon2001
    @Nikkudon2001 2 года назад +2

    My course teacher left ths topic for self study (because she can't teach it), but telusko taught me very well.
    Thanks a lot

    • @pranavnyavanandi9710
      @pranavnyavanandi9710 2 года назад

      Lol, she left the installation process for self study? Or the whole of Mysql itself? Lmao hahaha 🤣

  • @prashanthvaidya1358
    @prashanthvaidya1358 7 лет назад +2

    Very well explained. Thankyou Naveen sir! :)

  • @thinker5270
    @thinker5270 7 лет назад

    sir,your videos are awesome. Whenever i see your videos i will be knowing something new.

  • @nividarmy6410
    @nividarmy6410 4 года назад +2

    Thank you so much Telusko! Appreciate a Lot!

  • @peterjohnson8586
    @peterjohnson8586 4 года назад +1

    Naveen, Can you explain the difference between spring-jdbc and ojdbc jars ? and when one over the other is used.

  • @PujaKumari-rp5sg
    @PujaKumari-rp5sg 5 лет назад +1

    Sir your way of teaching is imaginable

  • @SuperAmitks
    @SuperAmitks 6 лет назад +3

    Sir you are my super hero..If I am the owner of DC I will definitely cast you as Superman

  • @raobrand5776
    @raobrand5776 Год назад

    And Bum "Error" 😄
    Best Java Teacher on RUclips Many Love From Pakistan
    🥰

  • @chirayujoshi1189
    @chirayujoshi1189 4 года назад +1

    For those who are getting exception in connecting to database, use latest connector. 5.1.49 worked for me.

  • @leo23820
    @leo23820 Год назад

    your teaching is very well brother. no one can tell like you

  • @anikyt7570
    @anikyt7570 7 лет назад

    This video is really helpful. Thank you very much sir.

  • @pritijadhav2625
    @pritijadhav2625 Год назад

    You !!! Such a blast man... I learned from basic of db connection just becoz of uhh 📈🙌🏻

  • @mohammedogleh5195
    @mohammedogleh5195 4 года назад

    naveen is a good man he share his own knowledge thousands of people with out nationality from Somalia

  • @princerorisang8854
    @princerorisang8854 Год назад

    your videos are very helpful, i wish i could have found your channel sooner

  • @ramakambhampati5094
    @ramakambhampati5094 3 года назад

    Brilliant explanation...you are JDBC spiderman...

  • @pradeepgovin3188
    @pradeepgovin3188 3 года назад

    Great explanation. Thanks so much.

  • @sankalparora9261
    @sankalparora9261 4 года назад

    Great. Took a while for the set up.

  • @sachinraut5769
    @sachinraut5769 7 лет назад +1

    i like the way u explain thank you sir............ keep it ahed

  • @pavaniganisetti1803
    @pavaniganisetti1803 3 года назад

    you helped me...thanks so much for these amazing videos

  • @ravindranayakm8719
    @ravindranayakm8719 6 лет назад +2

    simply superub! sir thank you

  • @sohil557
    @sohil557 4 года назад

    It's grate education better performance my teacher

  • @shivanisharma-zn6zh
    @shivanisharma-zn6zh 7 лет назад +2

    the legend Steve Job
    thanks for this wonderful video.

    • @siddhantsingh3392
      @siddhantsingh3392 2 года назад +1

      @Bijendra Rathore bro chill. The OP's comment is itself 4 years old 😂😂

    • @vellinari9385
      @vellinari9385 2 года назад

      @@siddhantsingh3392 🤣

  • @gauravrobin4326
    @gauravrobin4326 3 года назад

    far far better than professor of my college

  • @md.jahidhossain8212
    @md.jahidhossain8212 3 года назад

    just got what i want . one word for - great.

  • @poonamkhillari9008
    @poonamkhillari9008 2 года назад +1

    Explained very well.

  • @intrepidsouls
    @intrepidsouls 6 лет назад

    Great tutorial! Which macOS are you using?

  • @samuel_william
    @samuel_william 4 года назад

    Steve Jobs, Your videos are very easy to understand

  • @ck3908
    @ck3908 6 лет назад

    how do you get the hyperlink help on key words to pop up those help libraries? do I have to install some help file libraries? if so which ones?

  • @akhileshyaduwanshi6411
    @akhileshyaduwanshi6411 5 лет назад

    Awesome Explanation Navin

  • @hari-xix
    @hari-xix 5 лет назад +9

    These videos are so damn good. Thanks a lot.

  • @surajbirdawade6817
    @surajbirdawade6817 7 лет назад +1

    Hello sir, i am using sql plus and oracle 11g database so which driver should i use ??
    Please let me know fast my project is pending

  • @GreenBangla2022
    @GreenBangla2022 Год назад

    Best video on JDBC

  • @nancyayesha
    @nancyayesha 7 лет назад

    thanks for the explanation sir ☺

  • @vijeths1117
    @vijeths1117 5 лет назад

    A tidy explaination.😊

  • @docscontacts33
    @docscontacts33 5 лет назад

    you are great teacher thanks sir

  • @MrSinghrohit0907
    @MrSinghrohit0907 5 лет назад

    Awesome explanation Navin

  • @juileekudale9790
    @juileekudale9790 2 года назад

    Very very good explanation

  • @user-iv3ds6pc6r
    @user-iv3ds6pc6r 10 месяцев назад

    Informative session,Brohh

  • @chirayujoshi1189
    @chirayujoshi1189 4 года назад +5

    12:26 Navin sir had 14K subs on Apr 2016, and 1.03M subs on 10 Jul 2020.
    Great progress sir, all the best, keep it up.

  • @mirsinikarafylli3430
    @mirsinikarafylli3430 4 года назад

    Best tutorial ever!!!!!!!!!!!!

  • @Chandalyt
    @Chandalyt 3 года назад +30

    I am in class 9. But still I can understand whatever you taught. Thanks a lot.

  • @jeganmuthu6962
    @jeganmuthu6962 6 лет назад

    Sir, how to use scrap book in java instead going for workbench and what should be given in URL if scarp book is used

  • @laxmimounika4211
    @laxmimounika4211 2 года назад

    Here, we are using rs. next() only one time, which means the cursor will point to second row(Navin). For getting Mahesh we should use rs.next() one more time right?

  • @vladanulardzic5859
    @vladanulardzic5859 5 лет назад

    Well done ! Keep on ...

  • @navjeetkaur5742
    @navjeetkaur5742 3 года назад

    Thank u so much it helped me alot.

  • @sarfarajansari1618
    @sarfarajansari1618 4 года назад +1

    Sir can u plz reply that how are u able to open connection.class, Driver.class file???

  • @akasharora7034
    @akasharora7034 3 года назад

    really good stuff , thanks alot

  • @AmanVerma-mg2ym
    @AmanVerma-mg2ym 3 года назад

    OP sir ho gya aapki kripa se

  • @ravipudiyashwanth4584
    @ravipudiyashwanth4584 6 лет назад

    Sir, with out using netbeans and eclipse how can we add a library in notepad++ or codeblocks and how can we run this java program.

  • @parantakchoudhari9057
    @parantakchoudhari9057 3 года назад

    YOU ARE A LIFE SAVER.

  • @ishwarshelke128
    @ishwarshelke128 3 года назад

    best jdbc tut on utube

  • @learnislamquran
    @learnislamquran 2 года назад

    great explanation thank you

  • @adityaranjalker6446
    @adityaranjalker6446 3 года назад +1

    Sir, I have created a desktop application using java eclipse program to generate a random password and otp each time the user enters a user name,
    The user name, generated password, otp are stored in mysql workbench using jdbc, the username attribute in the table is mentioned as primary key, so it restricts entry with same username i.e if the usename is already taken into database, the new user cannot request for password and opt with the same username, I want to set a time limit for the data entered in the data base
    As the entered data remains into the database only for 30 minutes, so it becomes like a pre registration application for any event, where the user registers for the event, the generated password and otp are shown to the user which he has to physically note down, and then use it to get validated for entering the event within half an hour.
    Please suggest me a way to increase the security and imposing the time constraint sir.

  • @adla2
    @adla2 2 года назад

    thanks for a good tutorial, and i pretend that i didn't see the movies you have downloaded at 5.06 🙈

  • @aakashverma8049
    @aakashverma8049 6 лет назад

    Would you please shot a video on how to install and set up mysql database on mac and then connect to java.

  • @raghuna1178
    @raghuna1178 2 года назад +1

    Can anyone help me understand , how did Sir underlined DriverManager Class and checked methods inside ? any help would be appreciated

  • @adamararu4527
    @adamararu4527 6 лет назад

    Does it matter what version of JDBC I download if I want to use Microsoft SQL server 2017?

  • @AnuroopBangalore
    @AnuroopBangalore 3 года назад +1

    getInt(), getString() can be used if there are fewer columns and you know the type of columns of the table. What if you want to display 20 or 50 or more columns? How do you iterate the value from a resultSet and display values of all the columns including null?

  • @health.upgradedbyscience.7309
    @health.upgradedbyscience.7309 2 года назад +2

    Thank you so much, this video is so extraordinary helpful !!!!! I was exactly searching for this code-db-connection in Java, and there could not be any better explanation.. thank you so much from Munich, Germany :D

    • @Telusko
      @Telusko  2 года назад +1

      Glad it helped!

    • @health.upgradedbyscience.7309
      @health.upgradedbyscience.7309 Год назад

      @@Telusko .. and it works! 😁 I have created an input GUI where names of current players of my favorite team (FCBayern) can be inserted into a database, then sorted by shirt number and given back (just as an example..)😆🙃 I owe you so much, not just for this tutorial but for all of them - thanx a million!!! 👍😆

    • @Telusko
      @Telusko  Год назад

      @@health.upgradedbyscience.7309 Great work :)
      Keep Learning, Keep Growing :)

    • @health.upgradedbyscience.7309
      @health.upgradedbyscience.7309 Год назад

      Thank you, i will! 😄 Recently i mainly studied math with Abdul Baris algorithm tutorials.. such outstanding teachers, the two of you!! 👍highly appreciate all of your training and support!!!!!!!!!!!! 😆

  • @tioss6687
    @tioss6687 2 года назад

    thank you my life saver

  • @rizwancreations5620
    @rizwancreations5620 5 лет назад

    Sir if i want to display the data with tabular format means if column name is " username " and I want to display the data with column name then how I can do that stuff....

  • @shubhamkhuntia2412
    @shubhamkhuntia2412 2 года назад +1

    Thanks a lot.

  • @erguntercan
    @erguntercan 2 года назад

    thank you sir..

  • @nissypradeep4552
    @nissypradeep4552 5 лет назад +1

    Hi sir thanks alot for ur videos. Am 2012 passed out B. Tech with CSE, no job experience till now. I want to start career in IT,recently I completed core java training, I started to attend interviews but everybody is saying we want 2017 to 2019 passed outs, but my friends are suggesting AI and ML, DATA SCIENCE, course worth 3laks at iiit bangalore. What shall I do sir? Please suggest me to start career.

  • @vikashkumarbarnwal4233
    @vikashkumarbarnwal4233 3 года назад

    I have a question, How can getConnection() static method can return the instance of Connection interface, because Connection is an interface and we can not create instance for connection.

  • @pramilawaringe9670
    @pramilawaringe9670 7 лет назад

    hi sir, this is a nice video.

  • @nawelcheurfaoui6160
    @nawelcheurfaoui6160 3 года назад +1

    U'RE THE BEST!!!!!

  • @sumitchakraborty1471
    @sumitchakraborty1471 2 года назад

    Thank you Sir . 👾

  • @priyankav6437
    @priyankav6437 3 года назад

    Really Thanks man😊

  • @mayurishimpi2918
    @mayurishimpi2918 3 года назад

    Thanks for video

  • @anoopshukla2401
    @anoopshukla2401 5 лет назад

    Thank you so much sir...

  • @kacpermakuch7855
    @kacpermakuch7855 6 лет назад

    thank you very much !

  • @sairajdas6692
    @sairajdas6692 5 лет назад +1

    Sir how to connect jdbc if we are using mysql by phpmyadmin?

  • @himanshukatre24
    @himanshukatre24 2 года назад

    Thank you so much sir ❤️

  • @ananyabhushan1602
    @ananyabhushan1602 2 года назад

    Thank You Sir, Steve Jobs, Steve Wozniak, Ronald Wayne are the founders of Apple company.

  • @JoseFranc
    @JoseFranc 9 месяцев назад

    thank you so much

  • @ahmedkasso1
    @ahmedkasso1 4 года назад

    sir if i want run my project in device but Database in another device in the local network
    how do i do it ?

  • @swagatpatel7280
    @swagatpatel7280 3 года назад

    Great sir love u

  • @nikhiljadhav9785
    @nikhiljadhav9785 2 года назад

    Nice sirji 🔥

  • @aayushshah8443
    @aayushshah8443 4 года назад

    If you run above code first time then you may face time zone error so to tackle that error you have add
    ' ?useTimezone=true&serverTimezone=UTC' this sentence after your database name in URL

  • @annmaryphilip1037
    @annmaryphilip1037 6 лет назад

    very good video sir

  • @strawhat566
    @strawhat566 2 года назад

    Is there a tutorial where you use Data Source instead of Driver Manager?

  • @madhusudhanareddytimmaredd9030
    @madhusudhanareddytimmaredd9030 4 года назад

    What are the sub objects will close when call connection.close. here using connection pool