Skip to content
6 min read

SQL joins

INNER, LEFT, RIGHT, FULL OUTER, CROSS and self joins in SQL, with two small example tables, the queries and their results.

  • Databases
3 min read

Database migration: MySQL to PostgreSQL

Migrate a MySQL database to PostgreSQL with pgloader in Docker, and fix the two authentication errors you are likely to hit.

  • Databases
5 min read

JDBC

JDBC driver, DataSource and XADataSource class names per database, with GlassFish and Payara connection pool examples.

  • Java & Jakarta EE
  • Databases
8 min read

JPA (Jakarta Persistence)

JPA recipes: java.time mappings, sequence generators, runtime persistence properties, bulk updates, JSON columns and inheritance.

  • Java & Jakarta EE
  • Databases
2 min read

Apache Derby

Apache Derby, the pure-Java database: run the ij tool, connect with embedded, in-memory and network URLs, and run SQL.

  • Databases
  • Java & Jakarta EE
3 min read

Microsoft SQL Server

Run SQL Server in a Docker container, query it with sqlcmd, connect from Java with jTDS, and define a GlassFish connection pool.

  • Databases
6 min read

PostgreSQL

PostgreSQL reference: install and start, dump and restore, force-drop a database, size queries, MySQL migration with pgloader and XA errors.

  • Databases
11 min read

MySQL

MySQL reference: users and privileges, password resets, backups and restores, data export, handy queries, Docker and Connector/J.

  • Databases

Type to search the whole site.