2 messages in com.mysql.lists.communityNeed help with this DDL for creating ...
FromSent OnAttachments
Ahmed23 Jun 2005 09:15 
Marcello24 Jun 2005 02:39 
Subject:Need help with this DDL for creating Tables.
From:Ahmed (was@yahoo.com)
Date:06/23/2005 09:15:10 AM
List:com.mysql.lists.community

I am getting errors in creating the following 2 tables, Please help with the DLL
given below.

/* Table # 1: company_industry_sector */

create table company_industry_sector ( industry_sector_number decimal(4) not null, company_number decimal(7) not null, primary key (industry_sector_number, company_number) ) type = innodb; /*==============================================================*/ /* Index: xif1company_industry_sector */ /*==============================================================*/ create index xif1company_industry_sector on company_industry_sector ( company_number ); /*==============================================================*/ /* Index: xif7company_industry_sector */ /*==============================================================*/ create index xif7company_industry_sector on company_industry_sector ( industry_sector_number );

/* Table #2: company_comment */

create table company_comment ( company_number decimal(7) not null, company_comment_type_code char(6) not null, company_comment_sequence_number decimal(2) not null, company_comment_date datetime not null, company_comment_description varchar(250), company_comment_value_number decimal(1), previous_company_comment_date11 datetime, company_contact_date char(18), computer_user_name char(30), previous_company_number11 decimal(7), previous_company_comment_type_code11 char(6), primary key (company_number, company_comment_type_code, company_comment_date,
company_comment_sequence_number), key ak_xak1company_comment (company_comment_type_code, company_comment_date) ) type = innodb; /*==============================================================*/ /* Index: xif1company_comment */ /*==============================================================*/ create index xif1company_comment on company_comment ( company_number ); /*==============================================================*/ /* Index: xif2company_comment */ /*==============================================================*/ create index xif2company_comment on company_comment ( company_comment_type_code ); /*==============================================================*/ /* Index: xif4company_comment */ /*==============================================================*/ create index xif4company_comment on company_comment ( company_contact_date, company_number ); /*==============================================================*/ /* Index: xif5company_comment */ /*==============================================================*/ create index xif5company_comment on company_comment ( computer_user_name );