26 May 2018 · n-pacha ·       Add to Favorites   Report

Identity column in Teradata

Identity columns are used mainly to ensure row uniqueness by taking a system-generated unique value. They are valuable for generating simple unique indexes and primary and surrogate keys when composite indexes or keys are not desired

    CREATE MULTISET TABLE test01 
    (
Column1 INTEGER GENERATED BY DEFAULT AS IDENTITY
(START WITH 1
INCREMENT BY 1
MINVALUE 0 MAXVALUE 1000000 NO CYCLE
),
Column2 INTEGER);

Read great educational content like this and a lot more !

Members get free exclusive access to content, new courses, and discounts. Signup for a free account to write a post / comment / upvote posts. Creating an account takes less than 5 seconds and you can start earning badges & points too

Copied