Jump to content

create table help


Ruth

Recommended Posts

I'm using sql 5.1 running on unix. I have four tables I'm trying to link together through one table. I have a client, agency, phone log and employers table already built. When I try to create my placement table (link table) I get the following error:

 

ERROR 1005 (HY000): Can't create table './netpro/placement.frm' (errno: 150)

 

Here is my create table statement:

 

create table placement (

pclient_id int,

pagent_id char(20),

plog int,

pemp_id int,

start_date date,

pay int,

constraint pk_placement

primary key (pclient_id, pagent_id, plog, pemp_id),

constraint fk_pclient

foreign key (pclient_id) references client

on update cascade

on delete cascade,

constraint fk_pagent

foreign key (pagent_id) references agency

on update cascade

on delete cascade,

constraint fk_plog

foreign key (plog) references phone_log

on update cascade

on delete cascade,

constraint fk_pempid

foreign key (pemp_id) references employers

on update cascade

on delete cascade

) engine = innodb;

can anyone help me

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.