I'm using MySQL and I want to enter some data into the database.
How should I check if that primary key is already in use ?
For example say I'm using the product part number as the primary key, and a user wants to enter a new product.
Should I do a SELECT query and check if no results were returned, or what...?


Reply With Quote
