You are here: Re: "you should define a primary key for this table" - why? « PHP Programming Language « IT news, forums, messages
Re: "you should define a primary key for this table" - why?

Posted by CAH on 09/30/29 11:27

Gerard wrote:
> CREATE TABLE `usr_languages` (
> `pageName` varchar(25) default '',
> `itemNo` int(11) default '0',
> `en` text,
> `fr` text,
> `it` text
> PRIMARY KEY ( `pageName` , `itemNo` )
> ) TYPE=MyISAM COMMENT='different languages';
>
> I guess this should help in you with this table definition.

Hi Gerard

Thanks a lot - I did it with "alter table" since i alredy have the
table, and it did the trick. I do however think it my be a bug in
phpmyadmin that causes the error, but anyhow it worked.

Thanks for the help.

Cah

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация