Tag: 代理键

关系数据库devise问题 – 代理键或自然键?

哪一个是最佳实践, 为什么 ? a)types表,代理/人工密钥 外键是从user.type到type.id : b)types表,自然键 外键是从user.type到type.typeName :