MySQL Forums
Forum List  »  Newbie

unable create table
Posted by: divi s
Date: July 21, 2006 11:06AM

Hi,

Following is my create script for a table.when i run this code i am getting an error as

"Can't create table '.\itrendtest_dbo\test.frm' (errno: 150)"




CREATE TABLE `test` ( `filter_id` INT(10) NOT NULL auto_increment,
`user_id` INT(10) NOT NULL, `trend_plot_type_code` INT(10) NULL,
`y_param_name` VARCHAR(254) NULL, `x_param_name` VARCHAR(254) NULL,
`trend_from_date` DATETIME NULL, `trend_to_date` DATETIME NULL,
`last_duration` INT(10) NULL, `use_select` VARCHAR(15) NULL DEFAULT 'moving_window',
`event_type_code` INT(10) NULL, `gmt_last_updated` CHAR(29) NULL,
`last_upd_db_site` INT(10) NULL, `last_upd_db_id` INT(10) NULL,
`rstat_type_code` SMALLINT(5) NULL, PRIMARY KEY (`filter_id`),
CONSTRAINT `trend_plot_type_trend_filter_FK1` FOREIGN KEY `trend_plot_type_trend_filter_FK1` (`trend_plot_type_code`)
REFERENCES `itrendtest_dbo`.`trend_plot_type` (`trend_plot_type_code`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `users_trend_filter_FK1` FOREIGN KEY `users_trend_filter_FK1` (`user_id`)
REFERENCES `dbo`.`users` (`user_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
ENGINE = INNODB


can any one suggest why iam getting this error..

Thanks,
Divi.

Options: ReplyQuote


Subject
Written By
Posted
unable create table
July 21, 2006 11:06AM
July 21, 2006 12:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.