Re: "you should define a primary key for this table" - why?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: "you should define a primary key for this table" - why?

From: CAH <madsgormlarsen@gmail.com>
Date: Sat Sep 24 2005 - 17:02:09 CEST

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
Received on Tue Oct 18 02:27:36 2005