Updating Tables

CREATE UNIQUE INDEX idx_name_ccode_district
ON city (Name, CountryCode, District)


A unique index, in addition to the advantages of a regular index, ensures the uniqueness of records in the table by the fields specified in the index.