Java JDBC CRUD Tutorial (SQL Insert, Select, Update and Delete Examples)

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 111

  • @khalidhossain3850
    @khalidhossain3850 4 роки тому +5

    you are the most understandable teacher for java jdbc. When i saw your vedio , I understand it first time ......
    you are best teacher for JDBC.

    • @CodeJava
      @CodeJava  4 роки тому +2

      Thanks and welcome! Come to watch my videos more often. Cheers!

  • @ericmeric9879
    @ericmeric9879 2 роки тому +1

    Hello, I have tried your video up until parameters data creation and it worked. Thank you so much. Tomorrow I will continue the rest of your video. Thank you so much.

  • @aibeknazaraliev7000
    @aibeknazaraliev7000 Рік тому +2

    this video saved me a lot of time, thank you sooo much. Everything was so clear. I cant remember when i was doing everything without errors and with the first try, but today is the day

  • @princeprijwal8350
    @princeprijwal8350 3 роки тому +2

    Coding is very straight to the point. Loved it and keep it up

    • @CodeJava
      @CodeJava  3 роки тому

      Glad you loved it. Thanks for watching :)

  • @anushasaruka7320
    @anushasaruka7320 3 роки тому +3

    Thank you, a very good tutorial with no additional crap and to-the-point content.

    • @CodeJava
      @CodeJava  3 роки тому +2

      Glad it was helpful!

    • @maximmakai9327
      @maximmakai9327 3 роки тому

      sorry to be so off topic but does any of you know a tool to get back into an Instagram account..?
      I was dumb lost the login password. I love any assistance you can offer me!

    • @spencerwinston43
      @spencerwinston43 3 роки тому

      @Maxim Makai instablaster ;)

    • @maximmakai9327
      @maximmakai9327 3 роки тому

      @Spencer Winston i really appreciate your reply. I found the site thru google and I'm trying it out atm.
      I see it takes a while so I will get back to you later with my results.

    • @maximmakai9327
      @maximmakai9327 3 роки тому

      @Spencer Winston it worked and I actually got access to my account again. I'm so happy!
      Thanks so much, you saved my account :D

  • @honchan83
    @honchan83 3 роки тому +1

    Thank you. you explain better then my professor

  • @LuizOtavio-zj9br
    @LuizOtavio-zj9br 4 роки тому +1

    TIME ZONE ERROR (SOLVED)
    In my case there was an error with my time zone.
    To solve it, I went back to Mysql, right-clicked on our "users" table, clicked on "select rows" and typed the command:
    SET GLOBAL time_zone = '+4: 00';
    Then I went back to the eclipse and it worked!

    • @CodeJava
      @CodeJava  4 роки тому +2

      Thanks for your contribution.

  • @ShubhamKumar-dp6ip
    @ShubhamKumar-dp6ip 3 роки тому +1

    Awesome explanation . Completely understood

  • @drewity
    @drewity 11 місяців тому

    Such a helpful tutorial. Many thanks!

    • @CodeJava
      @CodeJava  11 місяців тому

      Glad it was helpful!

  • @ryanconway2371
    @ryanconway2371 4 роки тому +3

    Very Straight forward and helpful tutorial. Thank you!

    • @CodeJava
      @CodeJava  4 роки тому +1

      You're welcome. Glad it helped.

  •  2 роки тому

    thanks for the clear explanation

  • @patpat__gaming2099
    @patpat__gaming2099 3 роки тому +1

    thanks for vid..really helped me in my project👍

  • @aishwaryakamble4604
    @aishwaryakamble4604 Рік тому

    Thank you very much... For such a wonderful tutorial 😊✨🙏

    • @CodeJava
      @CodeJava  Рік тому

      you're welcome. Glad it helped.

  • @alishasharma880
    @alishasharma880 3 роки тому +1

    Hey, so most of the tutorials have website connect to database via php. I am creating a bookstore html website, can i connect it like your tutorial to be able to perform CRUD operations or do i need PHP?

    • @CodeJava
      @CodeJava  3 роки тому +1

      yes, you can connect using Java. In a webapp, you need to create Java servlet which uses JDBC to work with database. Check out this tutorial: www.codejava.net/coding/jsp-servlet-jdbc-mysql-create-read-update-delete-crud-example

  • @piyasidey2117
    @piyasidey2117 2 роки тому

    Thank you very much Sir.

  • @akbarshaikh8448
    @akbarshaikh8448 4 роки тому +3

    Sir How To Take Value From The User ? In this video you already given Value.

    • @CodeJava
      @CodeJava  4 роки тому +3

      check my answer in this video: ua-cam.com/video/nJ4MwK6o510/v-deo.html

  • @vijaykumar-wu9jc
    @vijaykumar-wu9jc 4 роки тому +1

    For recording voice which one u use , normal head phones ?

    • @CodeJava
      @CodeJava  4 роки тому +1

      I'm using a basic headphone. Nothing special.

    • @vijaykumar-wu9jc
      @vijaykumar-wu9jc 4 роки тому +1

      Am using normal headphones but voice is not getting recorded

  • @mixxy4032
    @mixxy4032 2 роки тому

    I am a begginer and I have a Java prog to use CRUD with MySQL but I don't know how to use SQL will I be able to understand this video and use CRUD as shown in the video to be used in my Java program

    • @CodeJava
      @CodeJava  2 роки тому

      you mean you don't know writing SQL statements?

    • @mixxy4032
      @mixxy4032 2 роки тому

      @@CodeJava yes

  • @amansheikh1801
    @amansheikh1801 3 роки тому

    Thnak you sir, you are very helpful.

  • @rehnumafirdos8930
    @rehnumafirdos8930 2 роки тому

    very helpful tutorial.. thank you so much !!

  • @rj3937
    @rj3937 4 роки тому +1

    This is very helpful. Thanks. Keep the good work

    • @CodeJava
      @CodeJava  4 роки тому

      Glad it was helpful!

  • @eltirad0
    @eltirad0 3 роки тому

    Do you consider a good practice in the Update to send all the fields, including those that were not changed in the form? I've always had this doubt, or send to update individually only those were changed in the form

    • @CodeJava
      @CodeJava  3 роки тому

      I prefer updating all the fields even some are not changed. If you want to update only fields that have changed, then you will have to code some logic to check values are changed or not, which could increase the complexity of the code unnecessarily (think about the logic to detect changes of a group of 3 checkboxes, for example).

  • @sarvajith7915
    @sarvajith7915 3 роки тому +1

    Thank u very much it was really useful

  • @deepikabhogi6194
    @deepikabhogi6194 3 роки тому

    Can u perform all the three SQL query operations in a single code.without changing it each time

    • @CodeJava
      @CodeJava  3 роки тому

      oh, it's impossible to execute all Insert, Select and Update in a single statement.

  • @dharan9203
    @dharan9203 3 роки тому +1

    Can u create a new database in JDBC by using Oracle database ? it's possible?

    • @CodeJava
      @CodeJava  3 роки тому +2

      I think no. You must use Oracle tool to create the database.

    • @carlosmorales8039
      @carlosmorales8039 3 роки тому +2

      Yes it's possible

  • @alternativeenergyresearch4857
    @alternativeenergyresearch4857 4 роки тому +1

    Can you provide Google script code or make video on to connect Google sheet to MySQL

    • @CodeJava
      @CodeJava  4 роки тому +2

      Hmm, let me study first.

    • @alternativeenergyresearch4857
      @alternativeenergyresearch4857 4 роки тому +2

      @@CodeJava thankyou very much I need it happy all the best for your study

    • @CodeJava
      @CodeJava  4 роки тому +1

      @@alternativeenergyresearch4857 thanks.

  • @huuquocdattran2877
    @huuquocdattran2877 3 роки тому

    Hello Mr Nam Ha Minh . I 've bg in this exercise.
    when i add a querry like INSERT INTO duplicate value in sql, in sql table it still shows sql value.
    How to check the value is already in the sql table and How to resolve this bug .

    • @CodeJava
      @CodeJava  3 роки тому +1

      you can set unique = true for the column that should not have duplicate values. Then it will throw an exception if you're trying to insert the same value. Then you catch this exception and handle it properly. Make sense?

    • @huuquocdattran2877
      @huuquocdattran2877 3 роки тому

      @@CodeJava yes , we'll resolve in Database and I think it's safety .

  • @stellagabriella9085
    @stellagabriella9085 3 роки тому

    Awesome channel
    Keep posting!!

  • @hippolytesama3817
    @hippolytesama3817 4 роки тому +1

    Simple and easy thanks a lot

  • @nasrimarc7050
    @nasrimarc7050 3 роки тому +1

    Thank you so much, can you please do the same but with MVC or MVVM if you can do that it's really great

  • @michaelaalquino7878
    @michaelaalquino7878 4 роки тому +1

    Does this work on xampp too? I don't have workbench lol

    • @CodeJava
      @CodeJava  4 роки тому +3

      Yes, of course. As long as you have the proper JDBC driver for Xampp (MySQL Connector Java might work).

  • @amardeepvijay
    @amardeepvijay 2 роки тому

    Loved it, thanks a lot

    • @CodeJava
      @CodeJava  2 роки тому

      Glad you liked it!

  • @thomashughes8550
    @thomashughes8550 4 роки тому +1

    Thank you! This really helped.

    • @CodeJava
      @CodeJava  4 роки тому

      I'm so glad! Subscribe to this channel.

  • @vijaykumar-wu9jc
    @vijaykumar-wu9jc 4 роки тому

    u have not loaded the mysql driver class is it ok

    • @CodeJava
      @CodeJava  4 роки тому

      No need to explicitly load driver class with new Java version (since 1.6)

  • @fasihakausar9121
    @fasihakausar9121 3 роки тому

    Thank you so much

    • @CodeJava
      @CodeJava  3 роки тому

      You're most welcome

  • @xanhbongcai7287
    @xanhbongcai7287 2 роки тому

    hay qúa thầy ơi

  • @azorynicodemas609
    @azorynicodemas609 5 років тому

    superb tutorial. thanks much

  • @rizaltaufiqhidayat3259
    @rizaltaufiqhidayat3259 4 роки тому +1

    Thanks sir, this tutor help me

  • @alternativeenergyresearch4857
    @alternativeenergyresearch4857 4 роки тому

    Hey iam using wamp server php admi. MySQL finding difficult

    • @CodeJava
      @CodeJava  4 роки тому

      I understand, phpmyadmin is super easy to use. With MySQL server you can use MySQL Workbench - a GUI tool that helps manage MySQL database easily.

  • @leonardtoo985
    @leonardtoo985 5 років тому

    Nice and helpful tutorial. Thanks

  • @levantai9918
    @levantai9918 3 роки тому

    good

    • @CodeJava
      @CodeJava  3 роки тому

      Thanks for watching.

  • @ammarbadri1150
    @ammarbadri1150 2 роки тому

    sir how can i solve this
    error: ';' expected
    String sql = " insert into Book values(" + book name + ",'" + book id + "'," + page number +")";
    ^
    Book.java:19: error: not a statement
    String sql = " insert into Book values(" + book name + ",'" + book id + "'," + page number +")";
    ^
    error: not a statement
    String sql = " insert into Book values(" + book name + ",'" + book id + "'," + page number +")";
    ^
    error String sql = " insert into Book values(" + book name + ",'" + book id + "'," + page number +")";

    • @CodeJava
      @CodeJava  2 роки тому

      variable names can't have whitespace. You should write bookName, pageNumber,...

  • @swathisivakumar6394
    @swathisivakumar6394 2 роки тому

    Where can i found password pls help me

    • @CodeJava
      @CodeJava  2 роки тому +1

      Do you mean MySQL root password? It's the one you set when MySQL server is installed.

    • @swathisivakumar6394
      @swathisivakumar6394 2 роки тому

      I forget my password 😕

  • @vuthien9342
    @vuthien9342 3 роки тому +1

    Người Việt Nam chắc luôn :v

    • @CodeJava
      @CodeJava  3 роки тому +2

      chính xác rùi đó.

    • @vuthien9342
      @vuthien9342 3 роки тому +2

      @@CodeJava e đang học java để làm backend web thì vô tình gặp a...cảm ơn a vì những video hữu ích

    • @CodeJava
      @CodeJava  3 роки тому +1

      @@vuthien9342 xem kênh anh thường xuyên hơn nhé (gần 260 video rồi).

  • @veerasakthivela1966
    @veerasakthivela1966 2 роки тому

    localHost:3306???

    • @CodeJava
      @CodeJava  2 роки тому +1

      it is hostname and port number of MySQL database server

    • @veerasakthivela1966
      @veerasakthivela1966 2 роки тому

      @@CodeJava thanks 😊

  • @AdamThao92
    @AdamThao92 4 роки тому

    Could've used some work

    • @CodeJava
      @CodeJava  4 роки тому +1

      what do you mean?

  • @datnguyen69468
    @datnguyen69468 3 роки тому

    please VietNamese :))

  • @progxmps6708
    @progxmps6708 2 роки тому +1

    Nice video

    • @CodeJava
      @CodeJava  2 роки тому

      Glad you enjoyed it