Java Connect to PostgreSQL Database Example

preview_player
Показать описание
Learn to code a Java program that connects to PostgreSQL database server and execute SQL statements using JDBC (Java Database Connectivity) API.

In details, here's what you will learn:
- Create a database in PostgreSQL server, and create a table.
- Code a Java program that connects to PostgreSQL database to execute Insert & Select SQL statements.
- How to use PostgreSQL JDBC Driver in two ways: use JAR file directly (manual download) and use Maven dependency.

Рекомендации по теме
Комментарии
Автор

Hi Code Java, I watched 20 hours of PostgreSQL tutorials over the past month coming from little experience and this is the first one which directly helped me reach my first (basic) holy grail; make a remote database, manipulate it.

Thank you, I feel I'm now on the path!

schmutz
Автор

Done this today successfully. Im so proud! Thank you :)

emilefeltesse
Автор

Helpful beyond measure. Thank you SO very much.

Intaberna
Автор

Calm and Collected! 💯
very concise too!

stephenpeters
Автор

Explaining is very clear and easy to understand

ajithchristo
Автор

I liked and subscribed because this video was exactly what I needed to help me understand the concept of connecting to postgre sql database from eclipse, thank you for your good work!! 🙏♥♥

cjm
Автор

Thank you for doing login through code, i really needed it <3

chameleonchamlee
Автор

@Code Java: How do I connect when my pgadmin4 is on other server. I have address and host name. However when I replace localhost by IP address or Hostname of server. I cannot connect to database? Which configure I must to set up?

SonNguyen-ikew
Автор

Great vid, but I'm having a problem.
When I click on build path for ContactProgram it doesnt show Classpath in the Library tab (as seen in 12:00)
I can only see JRE System Library. Any Idea why?

MatBat__
Автор

Buen dia amigo, veo que todos explican muy bien el insert, update y el delete pero no encuentro como consultar esa base de datos, es decir poder hacer una consulta para que me traiga la informacion y poderla poner en un formulario, si tienes algo te agradezco

christianandresheredialeal
Автор

when i clicked on run console didnt show any output. what should i do

nickparzival
Автор

Anh ơi em dùng NetBeans sau khi đã add JDBC.jar vào thư viện rồi run code thì màn hình output không có hiển thị gì (kể cả lỗi) là sao ạ?

trankhai
Автор

Hi, may I request you to prepare a video for calling the PostgreSQL function having JSON input and output parameters and calling it from Java, please? Thank you.

vinaytandel
Автор

Thank you !!! (Set local RUS: "Спасибо вам большое !!!")

fumitox
Автор

hi i did same things but ı cant connect, do u have advicee

melikeyildiz
Автор

INSERT works perfecly. But while SELECT
No results were returned by the query"
what should i do....?

parthiban.s
Автор

Can i use the same code on android studio?

RhiannaMilindra
Автор

At 12:45 when I try to change my password into a wrong password I don't get an error. Is that normal? I only get an error when I change the username.

DWEthiopia
Автор

Thank you bro, very relevant for begginers like me, +sub.

JonesVitox
Автор

hi bro im from UZB, pliiz can you show me how to connect postgresql to AndroidStudio and to do one easy thing? pliiiz!

leojoshiro