Skip to main content

Identity column to be used in referential integrity

  • July 6, 2016
  • 1 reply
  • 10 views

Nithesh
Forum|alt.badge.img+1

I am migrating data from MySQL to Vertica.

ID(Auto Increment)key in one table is referenced as the foreign key by another table. This FK implementation is on multiple tables in MySQL and is intrinsic to the functionality.

Vertica doesnt allow FK referencing on an Identity column,simply creating a ID key with int datatype wont work as the column has to be autoincrementing, how would i go about resolving this?

 

1 reply

Pravesh
Forum|alt.badge.img
  • Participating Frequently
  • July 6, 2016

Hi Nithesh,

 

Can you give some example of your problem?

 

Identity columns can be used as primary keys, and they can be referred by foreign key in another tables.