On Tuesday 18 March 2003 02:26, Custódio de Matos Lima wrote:

> Im having some troubles when creating the foreign key
> constraints in a InnoDB database. The problem is, i
> can create the InnoDB table, but im having a little
> difficult to make the connections with other tables.
>
> The error that apears is like that:
>
> Erro
>
> Comando SQL :
>
>  alter table tab3 add constraint foreign key (cod2)
>  references tab2
>  (cod2) on update cascade on delete cascade;
>
>
>  Mensagens do MySQL :
>
>
>  Can't create table '.\ola\#sql-52c_9e.frm' (errno:
> 150)

Check that columns are indexed, that columns have the same type.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to