I create a VIEW OF 3 TABLES. Each TABLE has a primary key. However, in VIEW, in order to have a primary key, I will have to use a composite primary key (combination of primary keys 3 TABLES).
However, I would like to add a column to VIEW as a primary key that is created only for VIEW purposes. As part of the definition of VIEW, it must be UNIQUE (auto-increment, since it will be mainly INT). How can i achieve this?
I am using MySQL 5.1
source
share