does it worth switching a PRIMARY KEY from the type NVARCHAR to the type INT?
问题 On our SQL SERVER 2008 R2 database we have an COUNTRIES referential table that contains countries. The PRIMARY KEY is a nvarchar column: create table COUNTRIES( COUNTRY_ID nvarchar(50) PRIMARY KEY, ... other columns ) The primary key contains values like 'FR', 'GER', 'US', 'UK', etc. This table contains max. 20 rows. We also have a SALES table containing sales data: create table SALES( ID int PRIMARY KEY COUNTRY_ID nvarchar(50), PRODUCT_ID int, DATE datetime, UNITS decimal(18,2) ... other