InterBase Database: Creating Unique Values - Introducing Generators

2,883 views · Published 30 May 2012 · 5:26 · Indexed 5 October 2026

Channel: Embarcadero Technologies · 2012 · Science & Technology

Watch on YouTube

In this tutorial, we will introduce Generators with an example that will combine with a trigger to create unique values for a record as its inserted into the database. 
Generators are unique Integer values that are specific to each database. You can use Generators from negative Integer to positive Integer to get unique values for use in, for example, primary keys. Using Generators is a positive thing as they are managed by the database to ensure their uniqueness: You can have multiple Generators on any one database. Learn more at http://www.embarcadero.com/database-in-action/interbase-labs

More from this channel