preventing duplicate rows?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux