Hi guys,

Column of table defined as primary key. there is violation and error message from database.

1) First way is to check if the value is already in database and then contuninue with insert
(this invloes an extra select for every insert and leaves defined primary key redundant)


What is the best approach to be followed for this scenario.?
what if there are several constrains defined on a table?

cheers

Manoj

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to