Brahim,
I saw no mention in your post as to what database you are using.
Since I am only familiar with nested tables in an
Oracle database, my answer will be biased.
Hopefully, either you are also using Oracle, or the following will also be applicable to the database you are using.
In Oracle, a nested table is really a separate table with a foreign key constraint to the nesting table. Each Oracle database table has an extra column called ROWID. This ROWID column acts as the foreign key for the nested table.
Since the nested table is no different to a regular table, defining a primary key constraint on the nested table will give you exactly the same result as defining a primary key on a regular table. Having said that, I'm not sure whether you can define a primary key constraint on a nested table (in Oracle), anyway. So perhaps your question is moot (as regards Oracle)?
Good Luck,
Avi.
[ April 28, 2004: Message edited by: Avi Abrami ]