I have a table for storing coupons/discounts, and I want to use the coupon_code column as the primary key, which is a VARCHAR.
VARCHAR
My rationale is that, eac
It is ok for sure. With just few hundred of entries, it will be fast.
You can add an unique id as as primary key (int autoincrement) ans set your coupon_code as unique. So if you need to do request in other tables it's better to use int than varchar