mysql - PHPMyAdmin - InnoDB tables will not join -


this database structure:

    create database mytvguide      create table if not exists `channels` (       `id` int(11) not null auto_increment,       `channel1` varchar(255) not null,       primary key  (`id`)     ) engine=innodb default charset=latin1 auto_increment=1 ;      create table if not exists `episodeairings` (   `id` mediumint(255) unsigned not null auto_increment,   `programme` varchar(255) collate utf8_unicode_ci not null,   `channel` varchar(255) collate utf8_unicode_ci default null,   `airdate` datetime default null,   `displayair` datetime default null,   `expiration` datetime default null,   `epname` varchar(256) collate utf8_unicode_ci not null,   `epno` mediumint(255) unsigned not null,   `epseries` mediumint(255) unsigned not null,   `setreminder` varchar(255) collate utf8_unicode_ci default null,   primary key  (`id`),   key `channel` (`channel`),   key `programme` (`programme`),   key `setreminder` (`setreminder`) ) engine=innodb  default charset=utf8 collate=utf8_unicode_ci row_format=dynamic auto_increment=3 ; insert `episodeairings` (`id`, `programme`, `channel`, `airdate`, `displayair`, `expiration`, `epname`, `setreminder`) values (1, 'tv programme 1', 'itv2', '2011-07-09 22:35:00', '2011-06-30 22:35:00', '2011-06-30 23:05:00', 'episode', '' , '', null), (2, 'tv programme 1', 'itv2', '2011-07-10 02:25:00', '2011-07-01 02:25:00', '2011-07-01 02:55:00', 'episodetest', '1', '2', null); create table if not exists `episode` (   `id` int(11) not null auto_increment,   `epname` varchar(255) not null,   `seriesnumber` int(11) not null,   `episodenumber` int(11) not null,   primary key  (`id`),   unique key `epname` (`epname`),   key `seriesnumber` (`seriesnumber`),   key `episodenumber` (`episodenumber`) ) engine=innodb  default charset=latin1 auto_increment=3 ;   insert `episode` (`id`, `epname`, `seriesnumber`, `episodenumber`) values (1, 'episode', 1, 1);  create table if not exists `programme1` (   `id` int(11) not null auto_increment,   `programme` varchar(255) not null default '<a href="pca1.php">police, camera, action!</a>',   primary key  (`id`),   key `programme` (`programme`) ) engine=innodb  default charset=latin1 auto_increment=2 ;   insert `programme1` (`id`, `programme`) values (1, '<a href="prog1.php">tv programme 1</a>');  insert `channels` (`id`, `channel`) values (1, '<a href="tv2.php">itv2</a>'); 

for reason can't link of tables in episodeairings - namely programme, channel, airdate, epname, epno, epseries in other tables (which programme, epname, seriesnumber, episodenumber). basically, dropdown won't happen @ linked tables, should do.

this despite fact database stored innodb via phpmyadmin , set linked tables.

why , how can fix it?

i not sure how phpmyadmin works assume requires define foreign key constraints between tables (e.g. using alter table statement).

see alter table docs: http://dev.mysql.com/doc/refman/5.1/en/alter-table.html


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -