preventing duplicate rows?
| From: | William Stokes | Date: | Thu, 13 Apr 2006 06:54:52 +0000 |
| Subject: | preventing duplicate rows? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-233860@lists.php.net to get a copy of this message | ||
Hello,
I'm updating a table with following SQL statement
$sql = "INSERT INTO x_ikaluokat (ryhma, ikaluokka)
VALUES ('$ryhma','$ikaluokka')";
What would be the best way to test that similar rows doesn't get created to
the table? I can't make both columns unique.
Thanks
-Will