I am getting a vlue from user and entering it inside my table in database. But I have to throw the user an error if he enters a value inside a data field which is already taken.
UPDATE Class_records SET The_number= '456' where class='mech-4B'
So here am updating my table by setting The_number to '456' to every records under mech-4B .
What kind of query statement can I do so that when another user enters the same number 456 say to "cse-4B" the query condition should fail ?