MySQL Forums
Forum List  »  InnoDB

Re: can´t register more than one FK per table, why?
Posted by: Joao Galli
Date: April 11, 2005 01:11PM

After creating one of the FKs,
I create the second like this:

ALTER TABLE `topassist`.`ordem_servico` ADD CONSTRAINT `FK_ordem_servico_2` FOREIGN KEY `FK_ordem_servico_2` (`tecnico_fk`)
REFERENCES `tecnico` (`id`)
ON DELETE RESTRICT
ON UPDATE RESTRICT;

and the error I get:

Mysql Error Number 1005
Can´t create table '.\topassist\#sql-6a8_1.frm' (errno : 150)


What can it be?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: can´t register more than one FK per table, why?
2260
April 11, 2005 01:11PM


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.