There are a couple of ways to do this. If you want to disallow duplicates of the first field in general, then you should cerate a unique index on that column. This will prevent the following situation:
If you try that with the unique index, then you will get an error similar to the following "attempt to insert duplicate key row".