Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. hsql

Category: hsql

hsql July 9, 2015 1 min read by mkyong 1 comment

HSQL identify auto increase ID

In HSQLDB you can use IDENTITY keyword to define an auto-increment column, normally, this is the primary key. Review below examples : 1. IDENTITY – Default By default, the IDENTITY value is start with zero. CREATE TABLE users ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), email VARCHAR(50) ); INSERT INTO users (name, email) VALUES […]

Read more HSQL identify auto increase ID

Java and Spring tutorials since 2008. Every example is a complete, runnable file, compiled and run on a real machine before it goes out.

About This Site

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use

© 2026 mkyong.com — Powered by WordPress

RSS