mysql - How to I correct this? -
i trying mysql query work, not.
create table if not exists `gospel_library`.`catalog_book_files` ( `id` int not null auto_increment, `book_id` int not null, `book_order` int not null default 0, `added` datetime not null, `modified` datetime not null, `version` int not null default 1, `downloads` int not null default 0, `file` varchar(100) not null, `uri` varchar(500) not null, primary key (`id`), index `catalog_book_files_ndx1` (`book_id` asc, `book_order` asc), index `catalog_book_files.fk1_idx` (), constraint `catalog_book_files.fk1` foreign key () references `gospel_library`.`catalog_book` () on delete no action on update no action) engine = innodb default character set = utf8;
1064 - have error in sql syntax; check manual corresponds mysql server version right syntax use near '), constraint
catalog_book_files.fk1
foreign key () references `gosp' @ line 13
i trying figure out solution use correct this. appreciated.
the problem creating index no columns specified. either remove
index `catalog_book_files.fk1_idx` (),
or change specify 1 or more columns
index `catalog_book_files.fk1_idx` (`somecolumn`),
Comments
Post a Comment