/0

Category: ‘MySQL’

How to do Conditional Inserts in MySQL (INSERT … WHERE NOT EXISTS)

At some point or other everyone needs to perform a conditional INSERT; one that is only executed after checking if the data is already in the database – so here’s how.

All content and images (unless otherwise stated) copyright © 2010 Division By Zero - Credits