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?
Subject
Views
Written By
Posted
4215
April 09, 2005 02:51PM
2368
April 11, 2005 08:51AM
Re: can´t register more than one FK per table, why?
2427
April 11, 2005 01:11PM
2220
April 11, 2005 10:42PM
2294
April 13, 2005 06:59PM
2238
April 14, 2005 11:05PM
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.