I have used this query to alter the table field:
ALTER TABLE `recordstudent` CHANGE `DATE` `DATE` TEXT NOT NULL UNIQUE;
But I am getting this error:
ERROR 1170 (42000): BLOB/TEXT column 'DATE' used in key specification without a key length
I am new to this and dont know what to do I googled it but found nothing which I could understand .Please help me to remove this error ,all I want this field as unique.