List:General Discussion« Previous MessageNext Message »
From:Jasper Bryant-Greene Date:September 21 2005 12:32am
Subject:Re: Inserting information into multiple tables and problems
View as plain text  
Todd Hewett wrote:
> mysql> INSERT INTO BOARD_SERIAL_NUMBER (BOARD_SERIAL_NUMBER)
> mysql> VALUES(36534);
> 
> ERROR 1216: Cannot add a child row: a foreign key constraint fails

Can you please post the output of:

SHOW CREATE TABLE BOARD_SERIAL_NUMBER;

> mysql> INSERT INTO BOARD_TYPE (BOARD_TYPE) VALUES(INPUT MODULE N12310);
> 
> ERROR 1064: You have an error in your SQL syntax near 'MODULE N12310)' at
> line 1

Did you mean:

INSERT INTO BOARD_TYPE (BOARD_TYPE) VALUES('INPUT MODULE N12310');

-- 
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
Thread
Inserting information into multiple tables and problemsTodd Hewett21 Sep
  • Re: Inserting information into multiple tables and problemsJasper Bryant-Greene21 Sep
Re: Inserting information into multiple tables and problemsTodd Hewett21 Sep
  • Re: Inserting information into multiple tables and problemsJasper Bryant-Greene21 Sep
    • RE: Inserting information into multiple tables and problemstodd hewett21 Sep
      • Re: Inserting information into multiple tables and problemsJasper Bryant-Greene21 Sep
        • RE: Inserting information into multiple tables and problemsTodd Hewett21 Sep