Error 1025: Error on rename of [...] (errno: 150)
Posted by:
R A
Date: October 09, 2011 08:14PM
Hi,
I have the following error after trying to change the type for 3 columns from INT to VARCHAR:
Executing SQL script in server
ERROR: Error 1025: Error on rename of '.\mydb\#sql-7b4_5c' to '.\mydb\student' (errno: 150)
ALTER TABLE `mydb`.`STUDENT` CHANGE COLUMN `idSTUDENT` `idSTUDENT` VARCHAR(45) NOT NULL , CHANGE COLUMN `idGUARDIAN1` `idGUARDIAN1` VARCHAR(45) NOT NULL , CHANGE COLUMN `idGUARDIAN2` `idGUARDIAN2` VARCHAR(45) NOT NULL ,
ADD CONSTRAINT `idGUARDIAN1`
FOREIGN KEY (`idGUARDIAN1` )
REFERENCES `mydb`.`GUARDIAN` (`idGUARDIAN` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
ADD CONSTRAINT `idGUARDIAN2`
FOREIGN KEY (`idGUARDIAN2` )
REFERENCES `mydb`.`GUARDIAN` (`idGUARDIAN` )
ON DELETE NO ACTION
ON UPDATE NO ACTION
I've already changed the type for idGUARDIAN in the GUARDIAN table from INT to VARCHAR with no error.
Thanks
Subject
Written By
Posted
Error 1025: Error on rename of [...] (errno: 150)
October 09, 2011 08:14PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.