How to insert if something does not exist in MySQL database
11th November 2014 - MySQL
When we create a database table we try to make sure that on certain tables we only allow the user to insert a unique record. To achieve this, we assign a primary key to the table but sometimes duplicate records can be inserted as there may not be any validations in place. The code below […]