Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
>When using a view, if two records have the same values in all their key fields, and I change the value of any field in one of the records, the other record is changed and gets the same value in that field. Even further: if I try to delete one of the records, it results in both being deleted.
>
>Is there any way to have two repeated records in an updatable view and manage them individually?
>
>TIA.
You must have at least one unique field as your primary key, or a combination of fields marked as the primary key in your view that would amount to a unique value.
Example:
CD Name
Artist
Track
Title
Alone, these fields may not be unique, but together they would create a unique value.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement