Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Setting Primary Keys for Product in Alphanumeric Form

Featured Replies

What is data integrity conflicts? And why it is best practice to prohibit changes to primary key fields? In my case, the primary key in my product master is alphanumeric and I need to delete or change the items sometimes because there are new items with same item number. I wonder if I should have product id and product number in the product master table so I can have two same item numbers, one has new packaging and another has old packaging.

Many thanks.

K. C.

A primary key is supposed to be both unique and permanent.

If it's not unique, then a foreign key in a child table will be pointing to more than one parent.

If it's changed, then child records will become orphans.

---

BTW, this is not a "security concept".

Edited by comment

Imagine a baggage check in: you get given a numbered ticket, and your luggage gets the same ticket.

Now imagine that somebody else got the same number as yours; or that your number got changed but the ones on your luggage did not.

:goodpost:

I'm working with one client who spent a couple of days changing all the "company codes" so they looked nicer. They were used as the primary keys. :-)

:doah:

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.