RE: Inserting information into multiple tables and problems

2005-09-21 Thread Todd Hewett
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 SHOW CREATE TABLE

Re: Inserting information into multiple tables and problems

2005-09-20 Thread Jasper Bryant-Greene
Todd Hewett wrote: I currently am failing with the following: mysql INSERT INTO VCS_PO_NUMBER (VCS_PO_NUMBER) VALUES(899234), - INSERT INTO BOARD_SERIAL_NUMBER (BOARD_SERIAL_NUMBER) VALUES(36534), - INSERT INTO BOARD_TYPE (BOARD_TYPE) VALUES(INPUT MODULE N12310), - INSERT INTO

Re: Inserting information into multiple tables and problems

2005-09-20 Thread Todd Hewett
SNIP--- You need to end each INSERT INTO statement with a semicolon (;), not a comma (,). Also pressing enter after each one will allow you to easier diagnose any problems that might come up. - I have

Re: Inserting information into multiple tables and problems

2005-09-20 Thread Jasper Bryant-Greene
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)

RE: Inserting information into multiple tables and problems

2005-09-20 Thread todd hewett
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

Re: Inserting information into multiple tables and problems

2005-09-20 Thread Jasper Bryant-Greene
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 SHOW CREATE TABLE