Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

DataCamp

Querying a PostgreSQL Database in Java

via DataCamp

Overview

DataCamp Flash Sale:
50% Off - Build Data and AI Skills!
Grab it
Connect Java to PostgreSQL with JDBC. Write secure queries, manage transactions, and handle large datasets efficiently.

Learn how Java applications work with PostgreSQL databases using JDBC. You will begin by setting up database connections and running queries, then proceed to creating secure, parameterized queries with prepared statements to avoid SQL injection. The course covers techniques like filtering, sorting, and pagination, followed by multi-table queries with joins and subqueries. You will also explore aggregations and grouping operations, implement transaction management to ensure data consistency, and utilize batch processing to efficiently handle multiple operations.

Syllabus

  • Connecting Java to PostgreSQL

    • Connect Java applications to PostgreSQL using JDBC. You'll execute queries, process results, and manage connections with pooling and proper resource handling.
  • Advanced Query Techniques
    • Build secure queries with prepared statements to prevent SQL injection. You'll filter and sort data, implement joins and subqueries, and add pagination for efficient retrieval.
  • Advanced Data Retrieval and Management
    • Aggregate data using COUNT, SUM, AVG, GROUP BY, and HAVING. You'll manage transactions for consistency, optimize operations with batch processing, and handle large objects using streaming techniques.

Taught by

Miller Andrés Trujillo Achury

Reviews

Start your review of Querying a PostgreSQL Database in Java

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.