On January 10, 2026 at 9:00 AM UTC the platform will be unavailable for 120 minutes due to planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Identity columns
Sequences
Summary

Instruction

Perfect. The code worked like a charm! However, you should also remember that using GENERATED ALWAYS AS IDENTITY doesn't allow you to provide any specific values on your own. Just as the syntax suggests, the values are GENERATED ALWAYS, with no exception. Let's check that.

Exercise

Now, try to add a row with your own value for the id column. This statement will fail. When you use GENERATED ALWAYS AS IDENTITY, you can never provide your own values for the given column.

You can run the template or create your own query. When you're done with the exercise, click I'm done. Next exercise.

Stuck? Here's a hint!

Simply run a template query.