Statement | JDBC Tutorial for Beginners

preview_player
Показать описание
In this JDBC tutorial for beginners, we will learn how to use the Statement Object to create and retrieve records in a MariaDB database. A Statement is the object used for executing a static SQL statement and returning the results it produces. You will learn the three execute methods of the Statement Object and the different types of SQL that are used in each.

1. execute(String sql);
2. executeUpdate(String sql);
3. executeQuery(String sql);

MariaDB Connector/J download link:

JDBC Connector | MariaDB Tutorial for Beginners

Eclipse Project code is available on GitHub

Check out my YouTube Channel for more FREE videos

Do you want to learn more about Java and how you can grow your skills as a Java Developer? SUBSCRIBE and ring that bell!
Рекомендации по теме
Комментарии
Автор

This is the second video in my JDBC series. Please Like, Comment and Subscribe! Cheers!

JavaCodeJunkie
Автор

Thank you 🙏🏽

I have a question. How do you make the " no equal " sign here 4:05 ?

( Sry for my English )

raviel
Автор

for the DBA commands like CONNECT and CREATE USER and GRANT, which execute type we use?

yassin
Автор

I'm learning JDBC right now and I'm very confused, how to fetch values from ResultSet object, when you select full table. When you go through each row, you must know how many columns you have in a row, otherwise - exception. You must know all types in a row, otherwise - exception. Is it necessary to hardcode it?

alexop