Answer:
ODKU works not only for PRIMARY keys, it works on all UNIQUE keys. So u should just define another one unique key to catch your duplicates.
ALTER TABLE `table` ADD UNIQUE (
`field1`
/*
...
,`fieldN`
*/
);
Become PHP Developer with our php tutorial
ALTER TABLE `table` ADD UNIQUE (
`field1`
/*
...
,`fieldN`
*/
);
No comments:
Post a Comment