문제

We use a unique id to sync products between our application and retailers.

Most of application are using SKU to identify the product, BUT why should we use a second id (SKu) if we already have one (primary incremental id key) ?

도움이 되었습니까?

해결책

Primary keys are mainly for database use. When a database references an item, it does not care for the structure of the primary key, on that it's unique

Although this could mean we could use many different forms, the reality is you want to keep your architecture as efficient & simple as possible. SKU's and other details (as referenced by sqlvogel) are attributes of particular database objects, and can change with time. Primary keys do not

다른 팁

SKU means a Stock Keeping Unit - a item or product that you stock. The question is what identifier(s) will customers and business users be using to identify SKUs. Often that's called a SKU code or just SKU for short. If you already have such an identifier then maybe you don't need another one, although it's perfectly reasonable and not uncommon to have different identifiers for different purposes (e.g. a bar code and a customer-friendly product code).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top