How to make a mysql field unique?
问题 Is there a way to make an existing txt field unique (do not accept duplicated values)? Field: post_title Type: text Collation: utf8_unicode_ci Null: Sim Default: NULL What gonna happens if someone tries to insert a post with an existing title? Could that affect some functionality of my site? Structure CREATE TABLE IF NOT EXISTS `hotaru_posts` ( `post_id` int(20) NOT NULL AUTO_INCREMENT, `post_archived` enum('Y','N') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N', `post_updatedts` timestamp NOT